What is appengine_config.py

I am trying to create an application for GAE. My application uses django template functions besides those supported in version 0.96. I was unable to force the application engine (except the development server) to use the django 1.2 built-in libraries.

I believe this post can solve my problems, except that I do not know what appengine_config.py is. I suppose I should include it in my project, but where and how? What should be in it, except for the fragment in the message to which I referred above?

Thanks!

+7
source share
1 answer

appengine_config.py at the top level of your project is automatically imported using google.appengine.ext.webapp.util.run_wsgi_app() to add an intermediate layer to webapp applications. The snippet you are associated with should be sufficient to load django 1.2.

Just paste it in appengine_config.py and in your main.py (or everywhere):

 application = webapp.WSGIApplication([your_mappings]) run_wsgi_app(application) 

Note that if you are not loading underwear such as appstats into appengine_config.py, you can simply route the use_library() call directly to main.py; the key must be sure that it is always loaded before django is loaded from another location in this instance.

+5
source

All Articles