0
Django a été installé via apt-ger sur Ubuntu.ImportError: aucun module nommé django.core.handlers.modpython
sudo apt-get install python-django
Besoin d'une version de développement pour les nouvelles fonctionnalités.
installation précédente Suppression via
sudo apt-get purge python-django
réinstallée Django suivant cet article
http://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-server/
django-admin.py --version
1.3 pre-alpha SVN-13591
N'a pas apporté des modifications au fichier httpd.conf
Obtenir ce erreur
MOD_PYTHON ERROR
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named django.core.handlers.modpython
essais Peu
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> import django.core.handlers.modpython
>>>