Thanks Bruno request.get_full_path() is enough for me . Best regards
09 Ocak 2009 Cuma 18:31 tarihinde bruno desthuilliers < bruno.desthuilli...@gmail.com> yazdı: > > > > On 9 jan, 17:06, "burcu hamamcıoğlu" <borco...@gmail.com> wrote: > > Hi everybody, > > > > do you know how can i get request url in views.py. > > > > My url pattern is like > (r'^wp/rmain2\.aspx','DisplayPacketApplications2'), > > But my link is like : > http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194&w=280jhjh > > > > when i use 'PATH_INFO' i olnly get 'wp/rmain2\.aspx' of the link. How can > i > > get the full link above ? > > request.get_full_path() will give you the path + the querystring. > > > http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path > > But if what you want is to get the 'pid' and 'w' arguments of the > querystring, it might be simpler to use request.GET, ie: > > def youview(request): > pid = request.GET.get(pid) > w = request.GET.get(w) > # you code here > > Have a look at the FineManuel(tm) for more about the HttpRequest > object: > http://docs.djangoproject.com/en/dev/ref/request-response/ > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---