问题
I want to run my django project on apache server. I found ton of tutorial to run django project on apache but in virtualenv. But I dont want to use virtualenv. I have installed apache2 and got it running fine. I installed mod_wsgi. Now what I need to do?
I am doing this whole thing in ubuntu/local environment.
Can any one help me???
回答1:
you have to configure apache's virtual host configure file in /etc/apache/site-available (in case of Ubuntu) and give the path of your wsgi web application
here it is official docs for deployment of Django
these links will help you
http://www.gaggl.com/2013/11/ubuntu-13-10-based-pythondjangowsgi-setup/
https://www.digitalocean.com/community/tutorials/how-to-run-django-with-mod_wsgi-and-apache-with-a-virtualenv-python-environment-on-a-debian-vps
来源:https://stackoverflow.com/questions/20121270/running-django-project-on-apache-in-ubuntu