在ubuntu中在apache上运行django项目 [英] Running django project on apache in ubuntu

查看:158
本文介绍了在ubuntu中在apache上运行django项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



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



可以任何一个帮助我?

解决方案

你必须在/ etc / apache / site-available中配置apache的虚拟主机配置文件(在Ubuntu的情况下),并给出您的wsgi Web应用程序的路径

这里是官方文档部署Django



这些链接将帮助您



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


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???

解决方案

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

这篇关于在ubuntu中在apache上运行django项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆