Hi again, Firstly i would turn PythonDebug On,
Here is a sample of what i use in a production enviroment maybe this might help. Cheers, Sam <Location "/"> SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath "['/path/to/python/code'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonInterpreter mysite PythonDebug Off </Location> Alias /site_media "/path/to/templates" <Location "/site_media"> SetHandler None AllowOverride All </Location> <Directory /path/to/templates> Options None AllowOverride None Order deny,allow Allow from all </Directory> <LocationMatch "\.(jpg|gif|png|html|txt|ico|xml)$"> SetHandler None </LocationMatch> <Directory /path/to/admin/media> Options +FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> Alias /media "/path/to/admin/media" <Location "/media"> SetHandler None </Location> On Nov 10, 8:13 am, "kmr" <[EMAIL PROTECTED]> wrote: > I've changed the httpd.conf to read: > > <VirtualHost django.loc> > DocumentRoot /Users/kimvandenbroek/Sites/mysite > > <Location "/admin/"> > SetHandler mod_python > PythonHandler django.core.handlers.modpython > PythonPath sys.path+['/Users/kimvandenbroek/Sites'] > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > </Location> > </VirtualHost> > > This coincides with the location of my python code and settings.py file > at: > > /Users/kimvandenbroek/Sites/mysite/settings.py > > With the change, the apache error_log shows: > > [Thu Nov 09 10:56:57 2006] [notice] mod_python: Creating 32 session > mutexes based on 3 max processes and 25 max threads. > [Thu Nov 09 10:56:57 2006] [notice] Apache/2.0.58 (Unix) > mod_python/3.1.4 Python/2.4.1 configured -- resuming normal operations > > The mysite directory contains: > __init__.py > __init__.pyc > manage.py > settings.py > settings.pyc > urls.py > urls.pyc > polls (directory for polls tutorial) > > Thanks, > > kmr --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---