问题
How do you get the URI from request object in Django?
Is there request.uri?
回答1:
request.META['REQUEST_URI']
or
request.get_full_path()
You tend to generate a flood of trivial questions, answers to which you could easily find in documentation/Google...
来源:https://stackoverflow.com/questions/2673069/how-do-you-get-the-uri-from-request-object-in-django