Bonjour,

J'ai installé mod_python et j'essais de configurer mon apache mais sans résultat...

J'ai ajouté ceci dans mon httpd.conf:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
Alias /dev "C:\chemin\_Dev"
<Directory "C:\chemin\_Dev">
	Options Indexes Multiviews
	AllowOverride None
	Order allow,deny
	Allow from all
	AddHandler mod_python .py
    PythonHandler mptest
    PythonDebug On
</Directory>
Mais quand j'essais d'ouvrir ma page qui se trouve dans c:\chemin\_Dev\python\, j'ai cette erreur qui s'affiche :

MOD_PYTHON ERROR

ProcessId: 4116
Interpreter: 'localhost'

ServerName: 'localhost'
DocumentRoot: 'C:/xampp/htdocs'

URI: '/dev/python/mptest.py'
Location: None
Directory: 'C:/chemin/_Dev/'
Filename: 'C:/chemin/_Dev/python/mptest.py'
PathInfo: ''

Phase: 'PythonHandler'
Handler: 'mptest'

Traceback (most recent call last):

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)

File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])

ImportError: No module named mptest
Etant débutant, je ne comprends pas trop...