Re: cannot get REQUEST_URI

2007-04-28 Thread Graham Dumpleton
On Apr 29, 1:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-04-28 at 15:22 +, omat * gezgin.com wrote: > > 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 > > shou

Re: cannot get REQUEST_URI

2007-04-28 Thread Malcolm Tredinnick
On Sat, 2007-04-28 at 15:22 +, omat * gezgin.com wrote: > 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. Apache is not the only web server

Re: cannot get REQUEST_URI

2007-04-28 Thread omat * gezgin.com
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']

Re: cannot get REQUEST_URI

2007-04-28 Thread Sam
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

cannot get REQUEST_URI

2007-04-28 Thread omat * gezgin.com
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