Reload django wsgi scripts without root Reload django wsgi scripts without root django django

Reload django wsgi scripts without root


If you are running mod_wsgi in daemon mode with apache, you may not have to restart apache to get it to reload.

I just touch my wsgi file (unix: touch updates the 'saved date' of a file) and apache reloads it on next access/web-hit.

See http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

... as long as you can alter the timestamp on the WSGI script.


http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

This article about reloading source code with mod_wsgi goes into how to reload source code, and even how to create a monitor script to automatically reload the daemon when you make source changes. It's really good for setting up a development environment using mod_wsgi.