I have some subdomains with my domain in GAE. These are, for example, blog.mysite.com, projects.mysite.com, and docs.mysite.com. Since it is configured now, all of them are processed with such settings in main.py:
def main():
applications = {
'blog.mysite.com': webapp.WSGIApplication([('/', BlogHandler)]),
'projects.mysite.com': webapp.WSGIApplication([('/', ProjectsHandler)]),
'docs.mysite.com': webapp.WSGIApplication([('/', DocsHandler)]),
}
util.run_wsgi_app(applications[os.environ['HTTP_HOST']])
How can I separate these subqueries that will be processed by different modules, so I would have something like blog.py, projects.pyand docs.py? Thank!
source
share