1

I have a get request being sent to my Django project with a list of parameters.

GET /site/login?
_name=bill&_last_name=Smith&_favorite_food=wings

I need to get each parameter and it's value. What would be the best way to do this? I know that in Django you can do print(request.data) but I need the parameters.

Jake Mulhern
  • 351
  • 1
  • 9
  • 1
    Does this answer your question? [Capturing URL parameters in request.GET](https://stackoverflow.com/questions/150505/capturing-url-parameters-in-request-get) – gdef_ Jun 01 '21 at 20:01
  • That does help. Is there a way to just get all parameters or do you need to specify each one individually? – Jake Mulhern Jun 01 '21 at 20:04
  • `request.GET` will give you a dict of your parameters in get request – MojixCoder Jun 02 '21 at 03:52

0 Answers0