How to reload new update in Django project with Apache, mod_wsgi?

蹲街弑〆低调 提交于 2019-11-29 09:45:41

Yes, touch your wsgi configuration file.

For me, my server restart script is as simple as touch /srv/grove_project/conf/apache/django.wsgi. Build it into your server management scripts and it's a nice graceful restart.

For more info and when this applies: https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

From The Man himself: this only works with mod_wsgi in daemon mode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!