Hola!
Yo estoy usando algo así en la configuración de Apache:
<Location "/app-django/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonDebug Off
PythonAutoReload Off
PythonInterpreter identificador-unico-por-app
PythonPath "['/path/to/app/source', '/path/to/django/source']
+ sys.path"
SetEnv DJANGO_SETTINGS_MODULE xxxxxxxxxxxx.settings
</Location>
Para evitar problemas, seteo explicitamente el path de la aplicación y
Django. Así puedo tener varias aplicaciones en el mismo servidor,
todas con su propia versión de Django (y no dependo de la versión de
Django instalada en el servidor). Si vas a usarlo, adaptá
"PythonInterpreter", "PythonPath" y "SetEnv DJANGO_SETTINGS_MODULE"
para tu aplicación...
Más info:
http://docs.djangoproject.com/en/1.2/howto/deployment/modpython/
Saludos!
Horacio
On Tue, Jul 20, 2010 at 9:14 PM, Guillermo Casalis <gncasalis@???> wrote:
> Tengo hecha una aplicacion en python, django, apache, mysql y cuando la
> ejecuto me da el siguiente error:
>
> MOD_PYTHON ERROR
>
> ProcessId: 2245
> Interpreter: '127.0.1.1'
>
> ServerName: '127.0.1.1'
>
> DocumentRoot: '/var/www/'
>
> URI: '/web/admin'
> Location: '/web/'
> Directory: None
> Filename: '/var/www/web'
> PathInfo: '/admin'
>
>
> Phase: 'PythonHandler'
> Handler: 'django.core.handlers.modpython'
>
> Traceback (most recent call last):
>
> File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537,
> in HandlerDispatch
>
> default=default_handler, arg=req, silent=hlist.silent)
>
> File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1202,
> in _process_target
> module = import_module(module_name, path=path)
>
>
> File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 304,
> in import_module
> return __import__(module_name, {}, {}, ['*'])
>
> ImportError: No module named django.core.handlers.modpython
>
>
> en que le estoy errando.
>
> gracias.
>
>
>
> --
> Para cancelar o configurar su suscripción, visite
> http://mx.grulic.org.ar/list o envíe un email a
> grulic-request@???
> I am the one who is many.
>
>