I am working with Python and the Django framework. When I want to use hyperlinks , I shouldn't write the full URL manually right ? I have to use some function that returns domain names , and concatenate the path to it manually. So, how can I get the domain name ?
Like:
For this, I want to write :
"http://"+somefunction()+"/path/to/file.ext"
Is there an equivalent of $_SERVER['HTTP_URI'] in Python.