mod_wsgi force reload modules
问题 Is there a way to have mod_wsgi reload all modules (maybe in a particular directory) on each load? While working on the code, it's very annoying to restart apache every time something is changed. The only option I've found so far is to put modname = reload(modname) below every import.. but that's also really annoying since it means I'm going to have to go through and remove them all at a later date.. 回答1: The mod_wsgi documentation on code reloading is your best bet for an answer. 回答2: The