View on Site broken with move over to Apache/mod_python.

I have moved my Django 0.91 project (idms, the application under the
idms project is called "pra" with several more apps to come) from my
development server over to Apache/mod_python on Windows XP SP1.
Everything was working fine using the development server.

Now the "view on site" in the admin interface is broken. It doesn't
seem to be resolving the urls to the correct pattern as it did with the
development server, I am getting http://127.0.0.1/r/20/1/  instead of
something like http://127.0.0.1/pra/1

I experimented with some different patterns with the (r'^r/',
include('django.conf.urls.shortcut')), [see below] but I can't seem to
crack the code.

I also tried adding the site: 127.0.0.1/pra in the admin sites section.
This didn't seem to work either.

Any help would be greatly appreciated.

Here is my Apache config:

#------------------------------------------
# added for Django
# Python path addition should point to the parent of the modules.
<Location "/pra/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    PythonPath "['C:\Documents and Settings\HIAPRC\My
Documents\Python'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE idms.settings
    PythonDebug On
</Location>
<Location "/admin/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    PythonPath "['C:\Documents and Settings\HIAPRC\My
Documents\Python'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE idms.settings
    PythonDebug On
</Location>

<Location "/media/">
    SetHandler None
</Location>
#------------------------------------------

idms project urls.py:

    (r'^r/', include('django.conf.urls.shortcut')),
    (r'^pra/', include('idms.pra.urls')),
    (r'^admin/', include('django.contrib.admin.urls.admin')),


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

Reply via email to