Django的+ APACHE&安培; mod_wsgi的:有更改后重新启动Apache [英] Django + apache & mod_wsgi: having to restart apache after changes

查看:144
本文介绍了Django的+ APACHE&安培; mod_wsgi的:有更改后重新启动Apache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我配置我的开发服务器这样的:

I configured my development server this way:

Ubuntu的,阿帕奇,mod_wsgi的,Python的2.6

Ubuntu, Apache, mod_wsgi, Python 2.6

我从连接到另一台计算机服务器上的工作。

I work on the server from another computer connected to it.

大部分的时间,除非我重新启动Apache所做的更改不会影响应用程序。
在某些情况下,更改生效,无需重新启动Web服务器,但让后说,3或4页加载应用程序的行为可能像以前的行为previous的变化。

Most of the times the changes don't affect the application unless I restart Apache. In some cases the changes take effect without restarting the webserver, but after let's say 3 or 4 page loads the application might behave like it used to behave previous to the changes.

到现在为止我只是每次重装Apache作为我的开发服务器在我这里,但地狱经过一段时间有这么烦人。我怎样才能避免这种情况?

Until now I just reloaded everytime apache as I have the development server here with me, but HELL after a while got so annoying. How can I avoid this?

因为我需要的是尽可能接近为一体的生产环境,我不能开发服务器工作。

I can't work with the development server as I need an environment that is as close as possible as the production one.

感谢

推荐答案

这博客文章可以帮助你:

This blog post may help you:

<一个href=\"http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html\">http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html

...这:

<一个href=\"http://$c$c.google.com/p/modwsgi/wiki/ReloadingSource$c$c#Restarting_Daemon_Processes\">http://$c$c.google.com/p/modwsgi/wiki/ReloadingSource$c$c#Restarting_Daemon_Processes

这篇关于Django的+ APACHE&安培; mod_wsgi的:有更改后重新启动Apache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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