Search code examples
djangouri

How do you get the URI from request object in Django?


How do you get the URI from request object in Django?

Is there request.uri?


Solution

  • 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...