http://library.linode.com/frameworks/django-apache-mod-wsgi/debian-6-squeeze
Configure Django Applications for WSGI
In order for mod_wsgi to be able to provide access to your Django application, you will need to create a django.wsgi file inside of your application directory. For the purposes of this example, we assume that your application will be located outside of your DocumentRoot in the directory /srv/www/ducklington.org/application. Modify this example and all following examples to conform to the actual files and locations used in your deployment.
File:/srv/www/ducklington.org/application/django.wsgi
import os
import sys
sys.path.append('/srv/www/ducklington.org/application')
os.environ['PYTHON_EGG_CACHE'] = '/srv/www/ducklington.org/.python-egg'
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
No comments:
Post a Comment