If you plan to use Django’s database API functionality, you’ll need to make ( PEP 3333), which allows it to run on a variety of server platforms. Additionally, Django follows the WSGI spec If you can’t use mod_wsgi for some reason, fear not: Django supports many otherĭeployment options. Sure you have Apache installed with the mod_wsgi module activated.ĭjango will work with any version of Apache that supports mod_wsgi.įor information on how to configure mod_wsgi once you have it Consult the mod_wsgiĭocumentation to determine which mode is right for your setup. Without restarting the entire Apache web server, possibly making Process can run as a different user than the web server, possibly In daemon mode, mod_wsgi spawnsĪn independent daemon process that handles requests. Life of an Apache process, which leads to significant performance Mod_perl – it embeds Python within Apache and loads Python code into mod_wsgi operates in one of two modes: embedded If you want to use Django on a production site, use Apache with Testing, so you won’t need to set up Apache until you’re ready to Section Django includes a lightweight web server you can use for If you just want to experiment with Django, skip ahead to the next