Apache Django Mod_Wsgi - auto reload
I am trying to auto reload my django app which uses apache + mod_wsgi on my local windows machine. I'd like to know where do I add this code that's referenced in the following article: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode def _restart(path): _queue.put(True) prefix = 'monitor (pid=%d):' % os.getpid() print >> sys.stderr, '%s Change detected to \'%s\'.' % (prefix, path) print >> sys.stderr, '%s Triggering Apache restart.' % prefix import ctypes ctypes.windll.libhttpd.ap_signal_parent(1) Read: http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html It