You are not logged in.

#1 2007-11-28 18:22:23

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Problem with apache mod_python and django

Hi guys,
I've correctly installed django from svn, and set up apache with mod_python.
I created my infotreni project into /home/httpd/html/ , edited /etc/httpd/conf/httpd.conf adding this:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE infotreni.settings
    PythonDebug On
    PythonPath "['/home/httpd/html'] + sys.path"
</Location>

Alias /media "/usr/lib/python2.5/site-packages/django/contrib/admin/media/"
<Location "/media">
    SetHandler None
</Location>

<Location "/phpmyadmin">
    SetHandler None 
</Location>

It seems to work fine, but there are some missing css files located in /usr/lib/python2.5/site-packages/django/contrib/admin/media/ . I've read several tutorials but I'm not able to let it work properly. sad:(

Last edited by uastasi (2007-11-29 15:40:14)


Till the last battle, till the last bottle.
aur - twitter

Offline

Board footer

Powered by FluxBB