Because request.META['PATH_INFO'] is only available when running the test server.
This is also a point of inconvenience and I think the test server should be made more compatible with apache. On 28 Nisan, 17:28, Sam <[EMAIL PROTECTED]> wrote: > Why don't you also use request.META['PATH_INFO'] at production level ? > > uri = request.META.get('PATH_INFO') > > On 28 avr, 12:53, "omat * gezgin.com" <[EMAIL PROTECTED]> wrote: > > > I need to use the current request URI in a template. Thus, I am > > passing the uri as a context variable, which is: > > > uri = request.META.get('REQUEST_URI') or request.META.get('PATH_INFO') > > > When I use this expression in the test server, which uses the > > request.META.get('PATH_INFO'), everything is fine but at production > > server (apache, mod_python) the value of > > request.META.get('REQUEST_URI') is always '/' for any url like 'http:// > > domain.com/something/' > > > Thanks for any help... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---