[Django]-Regular expression mismatch in django

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

1👍

See Django and query string parameters

As Brett Thomas says, you will have the query parameters available in request.GET

Leave a comment