[mod_python] Reload scripts without restarting Apache?

David Fraser davidf at sjsoft.com
Fri Feb 6 14:31:01 EST 2004

Leif K-Brooks wrote:

> I'm getting started doing some development with mod_python, and I 
> generally like to do a little bit at a time and test. That's made more 
> difficult by having to restart Apache to get my new scripts used, and 
> it would probably be worse on a production server. I don't want to 
> lose performance, but is there  a way to make mod_python check if the 
> script has changed or something?

There's a PythonReload option I think, check the docs.
It will only reload the imported module ; you need to handle any more
complex reloads yourself
Also, you shouldn't be doing testing on a production server so you
shouldn't have to restart so often...


More information about the Mod_python mailing list