On Jan 30, 3:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I've been beating my head against this problem for a while now, and I
> apologize if I'm asking again (I did look, believe it or not).
>
> I'm working on a development laptop, and I've got Django working on my
> apache server. However, the urls don't work like i'd expect them to.
>
> If i have an app at: "localhost/mysite", the urls that it tests will
> include the "/mysite" part. I would think that the url should be
> truncated to what is used in the  <Location> directive. It dosen't
> seem to be.
>
> So my question is: Is this the way that Django is expected to act?
> should i include "/mysite" as a prefix to all the urls in my `urls.py`?

Yes, it is the way it works. Django doesn't really process handle the
idea of SCRIPT_NAME, that is concept of it being mounted at something
other than root of the site. Realise you are probably using
mod_python, but similar issues arise with mod_wsgi and it is
specifically mentioned in:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango

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