Modpython handler and package
TSalm <[email protected]> Tue, 26 Apr 2011 11:34:20 +0200
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm using the PythonHandler.
I first created a "one piece" module. But now, I need to split it in a=20
package ( a folder with an __init__.py and other files).
But now, I've got the error :
------------------------- PAGE ERROR ------------------------------
MOD_PYTHON ERROR
ProcessId: 9486
Interpreter: 'webmirror.com'
ServerName: 'webmirror.com'
DocumentRoot: '/var/www/webmirror.com/'
URI: '/handler/'
Location: None
Directory: '/var/www/webmirror.com/handler/'
Filename: '/var/www/webmirror.com/handler/'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'webmirror'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line=20
1537, in HandlerDispatch
default=3Ddefault_handler, arg=3Dreq, silent=3Dhlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line=20
1202, in _process_target
module =3D import_module(module_name, path=3Dpath)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line=20
304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named webmirror
------------------------------------------------------------------------
The .htaccess aim to the folder's name :
-------------------------- .htaccess --------------------------------
SetHandler mod_python
PythonHandler webmirror
PythonDebug On
------------------------------------------------------------------------
Thanks in advance for your help,
-TSalm
____________
Analyse antivirus effectu=C3=A9e par G Data AntiVirus