I have mod-python working - I got a test page to work, but I can't
seem to get apache to execute python code with in my django app. This
is what I get when browsing to the django app.. http://www.mydom.net/python

[DIR] Parent Directory                             -
[   ] __init__.py             11-Mar-2007 08:23    0
[   ] __init__.pyc            11-Mar-2007 08:25  123
[   ] manage.py               11-Mar-2007 08:23  546
[   ] settings.py             11-Mar-2007 08:25  2.8K
[   ] settings.pyc            11-Mar-2007 08:25  1.8K
[DIR] test/                   11-Mar-2007 08:54    -
[   ] urls.py                 11-Mar-2007 08:23  225
[   ] urls.pyc                11-Mar-2007 08:55  220

I'm a new linux user and probably don't have something configured
properly.

I've followed as much of the online documentation and google help as I
can. I have this in a file under sites-enabled

<VirtualHost *>
    ServerName surface
    DocumentRoot /home/mike/www/
    <Location />
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        PythonPath "['/home/mike/downloads/trunk/'] + sys.path"
        SetEnv DJANGO_SETTINGS_MODULE python.settings
        PythonDebug On
    </Location>
    <Location /media/>
        SetHandler None
    </Location>
</VirtualHost>

Is is something in this file that I haven't configured properly? I did
a 'django-admin.py startproject python in the /home/mike/www/
directory
Does that mean my DJANGO_SETTINGS_MODULE is python.settings? Any help
would be greatly appreciated :)

Mike.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to