Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:18:03+00:00 2026-06-15T00:18:03+00:00

I am looking to discover the best possible practice for building up a file

  • 0

I am looking to discover the best possible practice for building up a file tree inside a GAE/python.

It seems rather efficient to keep everything in one file and route everything there via WSGI.

Though for a complex and multifaceted site it makes sense to have distinct files serving different purposes.

I ran into some weird complications when I had many urls listed in the app.yaml

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: /unit3.*
  script: unit3.app

- url: /birthday.*
  script: birthday.app

- url: /signup.*
  script: signup.app

- url: /rot13.*
  script: rot13.app

- url: /welcome.*
  script: signup.app

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.1"

- name: jinja2
  version: latest  

and then having to duplicate those paths in separate .py files

app = webapp2.WSGIApplication([('/signup',SignUpHandler),
                               ('/welcome',WelcomeHandler),
                               ('/signup/.*', NotFoundPageHandler)]
                               ,debug=True)

Is it weird that I think having to detail the routing of the url twice or more is cumbersome? Is there a way to have distinct files (html, css, py, js) and then have the app.yaml connect all the dots with the routing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:18:05+00:00Added an answer on June 15, 2026 at 12:18 am

    Best way to go is use webapp2 framework, routing is very simple there.
    You can then just define urls.py and add routes there.
    http://webapp-improved.appspot.com/
    Routing in webapp.
    http://webapp-improved.appspot.com/api/webapp2.html#uri-routing

    Here is boilerplate code to get you started.
    https://github.com/coto/gae-boilerplate

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for best advice on how to do this: I have an insert like
Looking for a way to get path of file (and then process it in
I am planning to write a card game in python, and now looking for
I'm looking for ideas on the best way to refactor this scenario (better design,
What's the best Ruby documentation resource? Some things I'm looking for: Offline Easy to
While looking for a way to discover the relationships between fields in Sage ABRA
I'm looking for a binary serializer because in my app, the user can discover
I'm searching for a best practice for securely sending data FROM a remote server
Looking for a clean way to discover the string name of a method in
I am looking for a property in a font file (either from WPF's System.Windows.Media.Fonts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.