How to reload new update in Django project with Apache, mod_wsgi?
问题 I am making a project using the Django framework. I have hosted a test server with Apache+mod_wsgi. When I change some lines of code, I upload the file and test it in a browser. But the new changes are not shown unless I reload/restart ( /etc/init.d/apache2 reload ). Is there any other way to reload/refresh new changes besides reloading Apache? 回答1: Yes, touch your wsgi configuration file. For me, my server restart script is as simple as touch /srv/grove_project/conf/apache/django.wsgi .