3👍
The querystring is not part of the path of an uri. So the behavior that is observed is correct. That creates a new question, how to get the full uri from a django.core.handlers.wsgi.WSGIRequest a object. The logical answers seems to be:
uri = '%s?%s' % (request.get_full_path, request.QUERY_STRING)
Though this is creates as reconstruction it will not give you the exact uri that was used to perform the http request. For example, there is no way to distinguish /path/ from /path/? .
To determine this for sure it’s required to gain direct access to the raw http request. I have not yet been able to do this. I will update when I find a working answer.
Source:stackexchange.com