Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If those are "parts" to the same application, you should separate them using URL mappings instead, this way maintenance is easier (since the url endpoints will be "centralized" and you'll be editing them in python) and everything gets more concise (app.yaml maps <em>applications</em>).</p> <p><a href="http://code.google.com/appengine/docs/python/tools/webapp/running.html" rel="nofollow noreferrer">Read this for clarification</a></p> <p>You'd basically add new mappings to several different handlers and organize those as python modules.</p> <pre><code>(...) from myapp import Part1, Part2 # etcetera (...) application = webapp.WSGIApplication([('/part1', Part1), ('/part2', Part2])]) </code></pre> <p>In case you're having trouble modularizing your python code, perhaps reading <a href="http://docs.python.org/tutorial/modules.html#packages" rel="nofollow noreferrer">the official docs</a> will help.</p> <p><strong>EDIT</strong>:</p> <p>My answer above is basically the same as the first one, it wasn't there when I started answering, sorry.</p> <p>A little more clarification on why this is better than having each part as a separate application:</p> <ul> <li>Module loading will only happen once per application restart</li> <li>If you check your appengine dashboard, some modules may take a <em>long</em> time to load (mostly when they're big, obviously)</li> <li>Profiling your whole set would be just a matter of adding a Middleware to <code>application</code>.</li> </ul> <p>Even with all that, I think the most important point would be: code organization will be way easier to accomplish since you can separate applications and logics in individual packages/applications.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload