[mod_python] package importing

Ivan Ricotti i.ricotti at elabor.biz
Fri Jun 25 03:32:20 EDT 2010


Hello,

I fixed my problem reconfiguring the VirtualHost using properly the
PythonPath directive (see here:
http://www.modpython.org/live/mod_python-3.1.2b/doc-html/dir-other-pp.html
):

<VirtualHost *:80>
       	ServerAdmin root at localhost
        ServerName mydomain.com

        PythonPath "sys.path+['/path/to/mybasedir']"
       	Alias / /path/to/mybasedir

        <Location />
       	        DirectoryIndex index.html index.py
               	AddHandler mod_python .py
                PythonHandler mod_python.publisher
                PythonDebug On
       	</Location>

</VirtualHost>

Cheers, :)
Ivan

-- 
Ivan Ricotti				
-------------------------------------------------
eLabor sc - via Giuseppe Garibaldi 33, 56127 Pisa
tel: +39 050 970 363, web: http://www.elabor.biz
email: i.ricotti at elabor.biz
GnuPG KeyID: DFD581C5 - 13/11/2003


More information about the Mod_python mailing list