Graham Dumpleton
graham.dumpleton at gmail.com
Thu Sep 20 19:40:02 EDT 2007
Put your Python code outside of your document tree and use PythonPath directive to indicate where it is. In mod_python 3.3.1 you can have a handler be in a package when in the document tree. For more details see documentation associated with import_module() function in: http://www.modpython.org/live/current/doc-html/pyapi-apmeth.html Graham On 21/09/2007, Morgan Smith <morgan.covaluate at gmail.com> wrote: > > Greetings, > > I am trying to setup mod_python to use tilecache. The hello world works > with the apache config directive > > <Directory /opt/apache/current/htdocs/ptest> > AddHandler python-program .py > PythonHandler mptest > </Directory> > > > My problem is that specifiying a subdirectory and Module name results in a > module not found. > > ie specifying : PythonHandler Subdir.mptest with the mptest.py but > into a sibdirectory Subdir. > > would not work. Is there a trick to getting the module paths to resolve > properly? > > > Any help appreciated > > -Morgan > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > >
|