you setup the app.yaml to send urls starting with /admin/ to a python file that loads app-engine-patch and everything else to a main.py that loads webapp. something like:
- url: /admin/.* script: app_engine_patch_loader.py login: admin - url: /.* script: main.py secure: never Then in your django urls.py handle /admin On Jan 4, 9:15 pm, Nickolas Daskalou <[email protected]> wrote: > This is probably a pure Python question. > > Is it possible to use a different framework depending on what hostname the > request was made to? For example: > > api.mydomain.com (API service) -> webapp > admin.mydomain.com (Backend administration) -> app-engine-patch (AEP) > > The data model needs to be the same for each framework (worst case would > require a duplicated models.py file, which is ok). > > We want AEP for its admin capabilities for admin.mydomain.com, but we want > responses from api.mydomain.com to be as fast as possible so we'd prefer to > use webapp, which responds faster than AEP on "cold" requests (requests > where there is no app caching yet).
-- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
