mod_python and updated files

2008-08-18 Thread Aaron Scott
I have mod_python running on my server, but when I chance a Python
file on the server, Apache needs to be restarted in order to have the
changes take effect. I assume this is so mod_python can run
persistently, but it's becoming quite a headache for development. Is
there a way to turn off the persistence, or a way to force mod_python
to compile and run the new version of the file?
--
http://mail.python.org/mailman/listinfo/python-list


Re: mod_python and updated files

2008-08-18 Thread Daniel Klein
On Mon, 18 Aug 2008 09:16:13 -0700 (PDT), Aaron Scott
[EMAIL PROTECTED] wrote:

I have mod_python running on my server, but when I chance a Python
file on the server, Apache needs to be restarted in order to have the
changes take effect. I assume this is so mod_python can run
persistently, but it's becoming quite a headache for development. Is
there a way to turn off the persistence, or a way to force mod_python
to compile and run the new version of the file?

Add this to your Apache httpd.conf:

MaxRequestsPerChild 1

Not something you want to leave set on a production server.

Dan
--
http://mail.python.org/mailman/listinfo/python-list