I was having this exact same problem.

I found a solution in chapter 20 of the Django book
http://www.djangobook.com/en/1.0/chapter20/
or see the highlighted section of the same page
http://www.diigo.com/annotated/dc0730e6af51d60cbcc6ff6a8daf847b

According to it
"If you deploy Django at a subdirectory — that is, somewhere deeper
than “/” — Django won’t trim the URL prefix off of your URLpatterns."

I simply moved my Django app to the / path of my Virtual Host and
adjusted my Apache config to look like:

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE whaler.settings
    PythonOption django.root /whaler
    PythonDebug On
    PythonInterpreter whaler
    PythonPath "['/home/jgourneau/whaler.com'] + sys.path"
</Location>

After I did this slashes were append to my urls like I expected.  I am
using revision 8533 of Django.  I hope this helps.

--josh


On Jul 28, 8:41 pm, Torsten Bronger <[EMAIL PROTECTED]>
wrote:
> Hallöchen!
>
> While APPEND_SLASH works with the Django testserver, I can't get it
> working with Apache.  My httpd.conf says:
>
> <Location "/mysite/">
>     PythonOption django.root /mysite
>     SetHandler python-program
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>     PythonDebug On
>     PythonPath "['/home/bronger/src/mysite/current', 
> '/home/bronger/src/mysite/current/mysite'] + sys.path"
> </Location>
>
> I use a current SVN-Django.  Any ideas why Apache and testserver
> behave differently here?
>
> Tschö,
> Torsten.
>
> --
> Torsten Bronger, aquisgrana, europa vetus
>                    Jabber ID: [EMAIL PROTECTED]

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