>From what I can see, request.get_full_path() seems to be what you
want. Details here:
http://www.djangoproject.com/documentation/request_response/

Regards

Jonas

2008/5/6 Davide.D <[EMAIL PROTECTED]>:
>
>  example:
>  http://127.0.0.1:8000/search/?q=keyword
>
>  "request.path" can just get "/search/"
>
>  How can I get "/search/?q=keyword " ?
>
>  ================================================
>  My current solution:
>
>  In my view:
>  full_path = request.path + '?' + request.META['QUERY_STRING']
>
>  In my template:
>  <a href="/accounts/login/?next={{ full_path }}">Sign in</a>
>
>  It worked, but I think it's not a good way.
>  ================================================
>  Is there a better way to do this?
>  Just like:
>  <a href="/accounts/login/?next={{ request.what }}">Sign in</a>
>
>  >
>

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

Reply via email to