How to get all GET request values in Django Views?

django, django-views, get, python, url-parameters

Solution

As @Daniel Roseman said you probably don't need to preserve the order, in which case you can just use the `request.GET` dict

Alternatively you can get the raw querystring:

request.META['QUERY_STRING']

https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.META

Problem

There are lots of question discussing how to get 1 parameter, but how do you get all of the parameters, preserving their order? There's this way: `request.GET.get('q', '')` to get 1 parameter. I need to capture POST requests to my URL, then add a parameter to the URL, and send it right back to confirm it's validity and source. This is for PayPal IPN if you're wondering. Thanks!

Original source

Related problems