Search code examples
djangoproxy-server

retrieving action attrubute of form in django view


In my proxy app, I want to retrieve the action of submitted form but I can't find any attribute in request object passed to the view. I tried request.path but it's incomplete. for example if true action of form was /proxy/?url=http://www.farsnews.com, the value of request.path is /proxy/ that is obviously useless. I searched the other attributes of request object but didn't help.


Solution

  • The querystring parameters, which are also known as GET parameters, are available via request.GET. This is fully covered in the documentation for the request object.