Wednesday, March 2, 2016

install mod_wsgi module for django

https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04

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