使用Django时,必须重新启动Apache在Apache与mod_wsgi [英] Have to Restart Apache When Using Django On Apache with mod_wsgi

查看:99
本文介绍了使用Django时,必须重新启动Apache在Apache与mod_wsgi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Django创建一个网络应用程序。既然我非常熟悉Apache,我设置了我的开发环境,让Django使用mod_wsgi来运行Apache。我唯一的烦恼是我必须重新启动Apache,每次我更改我的代码。有没有办法解决这个问题?

解决方案

mod_wsgi非常适合生产,但我认为包含的服务器更适合开发。 p>

无论如何,您应该阅读这个关于自动重新加载源代码。


I'm creating a web app with Django. Since I'm very familiar with Apache I setup my development environment to have Django run through Apache using mod_wsgi. The only annoyance I have with this is that I have to restart Apache everytime I change my code. Is there a way around this?

解决方案

mod_wsgi is great for production but I think the included server is better for development.

Anyway you should read this about automatic reloading of source code.

这篇关于使用Django时,必须重新启动Apache在Apache与mod_wsgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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