O'Reilly logo

Programming Google App Engine by Dan Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Django App Engine Helper

Django has many useful features that work well with App Engine, but some features need a little help to work as described in the Django documentation. A few features are not supported, especially those that depend on Django’s database interface, which expects to be backed by a relational database. If you develop with Django using just the minimal request handler, you’ll need to be careful not to use an unsupported feature, or a feature that depends on something that is unsupported. Notably, Django’s admin application relies heavily on the database interface, and does not work with App Engine.

Thankfully, there are several open source projects that restore and extend support for features of Django for App Engine. One such project is the Django App Engine Helper. The Helper makes it easy to use Django’s maintenance tools with App Engine, such as using manage.py to start the App Engine development server. It provides an adapter layer so you can use App Engine data models with some Django components expecting Django’s own data classes. The Helper also makes it easy to use Django’s unit testing framework, including fixtures that install test data in the development server’s datastore. Other features of Django are adapted to use App Engine services and infrastructure, and otherwise behave as they do in other Django apps.

To install the Helper, download it from the project website:

http://code.google.com/p/google-app-engine-django/

Click the Downloads tab, then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required