如果修改了django的view,在生产环境中重启服务器,成本会有一些大


如果是用uwsgi部署


直接用

touch $HOME/webapps/django/myapp/myapp/myapp.wsgi


参考

http://stackoverflow.com/questions/9183114/is-it-possible-to-reload-the-view-without-restarting-django

https://community.webfaction.com/questions/15040/seamless-restart-for-django-projects-wsgi-apache