http://ericholscher.com/blog/2008/jul/8/setting-django-and-mod_wsgi/eps:
Configuration Steps:
A. create django project in the folder: /root/www/html
run: django-admin startproject mysite
1. Modify /etc/apache2/sites-available/000-default.conf or default
DocumentRoot /var/www/html/mysite
WSGIScriptAlias / /var/www/html/mysite/mysite/wsgi.py
2. Modify /etc/apache2/apache2.conf
append at the end of the file:
WSGIPythonPath /var/www/html/mysite
No comments:
Post a Comment