Installing a Django-based application using mod_wsgi
Django is a versatile web development framework written in the Python programming language. The framework allows for rapid development while encouraging good coding practices. Applications written in Django can be hosted on Apache with the use of the mod_wsgi
module.
This recipe will demonstrate how to set up your server to host a Django application. Other Python applications supporting mod_wsgi
can be set up in a similar fashion. This includes applications such as MoinMoin, PyBlosxom, Trac, and other frameworks such as CherryPy, Pylons, TurboGears, Pyramid, web.py, Werkzeug, Web2Py, and Zope.
How to do it...
Install the Apache web server by following the Installing Apache on your system recipe in Chapter 8, Running an Apache Web Server.
Install Python Version 2.7 using a system package. The package will be named
python
,python2.7
,python-2.7
, or something similar.Tip
As of Version 1.5, Django supports Python 3, and setup is the same as in...