Reputation: 85
After the form is submitted a get request with parameters will be created, I was struggling with the regex in the urls.py I want to know the pattern for this Get request
/create-usecase/?usecase_name=test&category=1&sub_category=msameh&csrfmiddlewaretoken=m4UIwr0qsWuAwVJq7OCLt6KY8EnFrlFDNGJcTUicY2rUylMgFMzILElZaPDbNLtr
and how to get these values in the view function
Upvotes: 1
Views: 3340
Reputation: 799240
The query string is never part of the routing. The view at /create-usecase/
will need to inspect request.GET
directly or otherwise and operate based on that.
Upvotes: 5