ServingDjango
From Django In Production
There are numerous ways of serving up Django powered pages on your web server. The current recommended setup is Apache and mod_python.
Contents |
Apache
There is some debate on the use of prefork MPM or worker MPM.
Lighttpd
Lighttpd is a lightweight web server that is often used to serve static media. It can serve Django using the following methods:
Nginx
Nginx is a lightweight web server that is often used to serve static media. It can serve Django in the following ways:
Google App Engine
Google App Engine allows you to run your web applications on the same scalable systems that power Google applications. It doesn't allow for a completely standard Django setup, and there are two ways in which Django on App Engine differs:
- App Engine does not provide an SQL database so you cannot use Django's standard Model class.
- App Engine restricts certain module imports and actions that Django tries to perform (such as creating and removing the test database).
There is a helper application that attempts to resolve some of the issues with running Django on App Engine: http://code.google.com/p/google-app-engine-django

