Django since 1.0 onwards is usually fine with SCRIPT_NAME. Quite
possibly you have tweaked something in settings or setup urls.py wrong
to cause the issue. I would suggest you start over with a fresh Django
installation and create the most minimal working example of what you
are trying to do and which demonstrates the problem. Then come back
and post what your Apache/mod_wsgi configuration is, what you changed
in settings, what you have in urls.py and the details of what and what
the template contains.

In short, it is impossible to help when others don't have a problem
and we have no idea of what you have set your configuration to or how
you are trying to do what you are doing.

Graham

On Aug 8, 7:44 am, Streamweaver <streamwea...@gmail.com> wrote:
> There's been some discussion here about what to do when you're trying
> to run a Django site not under the root domain.
>
> So for a site likehttp://mysite.com/django/
>
> Django (or WSGI?) doesn't seem to be able to be able to handle the
> SCRIPT_NAME ('/django' in this example) portion of the url well.  You
> have to add the request context to the application and views as well
> as account for it in the templates.
>
> Fair enough I guess and I refactored my application to handle this so
> far.
>
> I'm running into pretty big problems with using Django's login
> framework in this context.
>
> First there are the various login settings of 'LOGIN_URL' and such,
> and these can't be passed a context.  I got around this by adding
> another variable to the settings file I can see in addition to having
> to read the SCRIPT_NAME in the views and templates.
>
> I continue to have a problem though in that the generic login
> functions seem to have no way to handle SCRIPT_NAME and I suspect this
> problem extends to generic views in general.
>
> Is there anyway around this?  Anyone know if fixing this on the Django
> roadmap?
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to