在ubuntu上运行apache上的django项目

时间:2013-11-21 12:41:27

标签: django apache mod-wsgi

我想在apache服务器上运行我的django项目。我发现大量的教程在apache上运行django项目,但是在virtualenv中。但我不想使用virtualenv。我已经安装了apache2并且运行正常。我安装了mod_wsgi。现在我需要做什么?

我在ubuntu /本地环境中做这整件事。

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

你必须在/ etc / apache / site-available中配置apache的虚拟主机配置文件(如果是Ubuntu)并给出你的wsgi web应用程序的路径
这里是部署Django的official docs

这些链接可以帮助您

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

相关问题