python - django项目部署再apache中调试问题
黄舟
黄舟 2017-04-17 13:20:47
0
2
417

django项目部署再apache中,因为是测试服务器,所以经常会有修改,但部署再apache中会有缓存,经常要重启下apache才能看到修改后的效果。能不能做什么配置,让项目像再django的自带的服务器上一样,修改后马上就能看到效果? 谢谢各位指教。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
巴扎黑

I tell you clearly no!

This is not the apache cache. After updating the code, the new code must be restarted before it can run.
Since it is a test server, you might as well run Django directly without apache. In fact, after such modification in Django debug mode, you will immediately see the effect and restart it.
Of course, you can also write a shell to automatically restart apache when the file is updated. Gaga

伊谢尔伦

Do not modify Apache in the test environment. Just run Django in HTTP mode and it will be ok.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template