Is it possible to send the data inside the query string using django

Is it possible to send the data inside the query string using django and then later on by accessing the query string do some calculations.
I am working on django rest framework and refered some resources but didn’t get something like that.

For ex. I am sending some values in my url such as https://127.0.0.1:8000/math/?a=20&b=2
and then on the following page the result will come up as 22 the sum of a and b.
Basically I want to access my query string and want to adjust its variables.
Please help !!
Thanks in advance !! :smiley::smiley:

Please reply!! :pensive::pensive:

Would HttpRequest.GET / QueryDict do what you need?

https://docs.djangoproject.com/en/2.0/ref/request-response/#attributes

https://docs.djangoproject.com/en/2.0/ref/request-response/#id1

Sir, I want to embed information inside query string and then want to send that url to someone so that he can compute some methods or functions

1 Like