On Wed, 2009-02-11 at 19:29 +0300, Dmitry Dzhus wrote:
> Leslie Maclachlan wrote:
> 
> > I would expect the url to show as: http://intranet/MV_Edit_Employee/1/
> >
> > But, it shows up as:
> >
> > http://intranet/var/opt/django/projects/ilayer/MV_Edit_Employee/1/
> >
> > Everything still workds, but it just looks strange to have a url showing 
> > the absolute path on my apache mail server to teh location of the 
> > view.py  (/var/opt/django/projects/ilayer/intranet/)
> >
> > Anyone seen this before - is it normal?
> 
> Probably you should try setting `FORCE_SCRIPT_NAME`:
> http://docs.djangoproject.com/en/dev/ref/settings/#force-script-name. 
> 
> I had similar issue with `url` tag giving awkward path.

To be accurate, this isn't a problem with the URL tag. The URL tag is
providing a completely correct version of the request path, as seen by
the process running Django.

The problem is that some webservers (and some webserver configurations)
do not providing enough information to detect that a URL rewrite has
occurred and some hosting providers require such rewrites. Django works
hard to accommodate those oddities, but, since it cannot read your mind,
you sometimes have to tell it that you're using a slightly odd setup.

Regards,
Malcolm



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