1👍
✅
To clarify what the other answerers have said, everything after the ? is not part of the URL, and will not be matched in the regex.
1👍
These patterns are technically the same URL, just with different query strings.
Did you think about consolidating them to a single view, and testing to see if request.GET.get(‘filter’) returns anything?
I don’t think reversing them will do anything — I believe Django ignores the query string when it processes the URL
- [Django]-Django could not load template tag
- [Django]-No OCR tool found in python
- [Django]-How to use math remainder in django template?
- [Django]-Serving files uploaded by a user during development in django
1👍
See Django and query string parameters
As Brett Thomas says, you will have the query parameters available in request.GET
- [Django]-Django – ManyToMany as hidden fields?
- [Django]-Django: class based view logout user if not staff
- [Django]-Python: Where to put external packages?
- [Django]-How can you use Django template tags in a Jinja2 template?
- [Django]-Fabric: unable to get environment variables within virtualenv
Source:stackexchange.com