Hi, Rebecca!

Try to use request's `get_full_path` [1] method. It's environment
independent and produces full path string with query.

[1]:
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path

---
Alex Koshelev


On Fri, Aug 7, 2009 at 1:37 AM, Rebecca K <rlskoe...@gmail.com> wrote:

>
> I'm working on an ARK (Archival Resource Key) resolver in django, and
> as part of the ARK spec I need to recognize and distinguish urls
> ending with '?' and '??'  (no query string or anything else
> following).
>
> When I run my django app through mod_wsgi, I have access to
> request.META['REQUEST_URI'], which contains the path plus the question
> mark.  When I run my django app with manage.py runserver, I get a key
> error when I try to access REQUEST_URI.  Same thing when I use the
> django test client.
>
> Anyone have any thoughts on how I can access the REQUEST_URI
> consistently no matter what environment the django app is running in?
>
> I'm not tied to using REQUEST_URI-- if there are other ways to detect
> the '?' on the end of the url, that serves my purpose just as well.
> But it seems that the all of the django HttpRequest object functions
> and properties have path and query string values that are too
> sanitized and don't give me access to this.
>
> Thanks in advance for any help or suggestions.
>
> >
>

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