Running django project on apache in ubuntu

倖福魔咒の 提交于 2019-12-12 06:41:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!