[mod_python] Udate python modules without restarting Apache

berry groenendijk berry.groenendijk at gmail.com
Fri Oct 8 00:09:05 EDT 2004


There is indeed very little information on the Internet about the
apache.import_module funtion. I did find this Wiki page:
http://modpython.coedit.net/ReloadingModules

I now import all my Python modules using apache.import_module, except
for all the Standard Library imports. All indirectly imported modules
are also imported with apache.import_module. In my .htaccess file I
have set PythonAutoReload On.

But, when I make a change in a module, save it and refresh my browser,
the module is NOT reloaded. Why? Has anyone succefully used
apache.import_module?

Thanks,
Berry.


On Tue, 5 Oct 2004 18:30:19 +0200, Martin Slouf <xslom03 at vse.cz> wrote:
> On Mon, Oct 04, 2004 at 11:12:42PM +0200, berry groenendijk wrote:
> > Hi Mike,
> >
> > I was about to ask the same question! I am building a website using
> > servlets. But, I still haven't found a hosting provider that supports
> > mod_python 3.1.3. Can you recommend a hosting provider? Is it
> > reasonably priced? I also do prefer a hosting provider in Europe, for
> > example Germany or The Netherlands. Do you know a good hosting
> > provider in Europe that does support mod_python 3.1.3?
> >
> > Indeed when I change .py modules in my developement environment, I
> > need to restart Apache to get the changes to work. So, I was also
> > wondering how to update .py modules on a server at a hosting provider
> > that does not allow you to restart the Apache server proces.
> >
> > Thanks,
> > Berry
> >
> 
> ad hosting:
> 
> well, there is a server in CZE --> www.eolymp.cz (it at eolymp.cz) which provides
> 3.1.3 mod_python, python 2.3.3, apache 2.0.50 and MySQL.  im its admin (_only_
> an admin), but im not sure, whether the company will accept someone from
> abroad. its a strange company, but pricing migth be reasonable -- there is
> nothing like 'official webhosting pricing', but you may want to contact Roman
> AppeltHauer at it at eolymp.cz.
> 
> ad modules:
> 
> i use the touch command (fits in most cases) and in sometimes server restart,
> but true, im not able to really reload all the modules without server restart.
> 
> m.
> 
> 
> 
> 
> >
> > On Mon, 4 Oct 2004 15:06:34 +0100, MJR <pynode at centrum.cz> wrote:
> > > Hi,
> > >
> > > I'm running mp servlets on Apache server I don't have control over, i.e. I
> > > cannot restart it when I change my .py modules imported by my .mps scripts.
> > >
> > > I'm just wondering whether there is any hack for this. How people deal with
> > > it in a production environment.
> > >
> > > Thanks,
> > > Mike
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://mailman.modpython.org/mailman/listinfo/mod_python
> > >
> > _______________________________________________
> 
> 
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list