Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

uri

django

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

Is there request.uri?

like image 406
zjm1126 Avatar asked Apr 20 '10 06:04

zjm1126


1 Answers

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

like image 116
Ludwik Trammer Avatar answered Nov 12 '22 10:11

Ludwik Trammer