Exactly the same as this question, but there must be a way to do it without the Sites module. That's just silly... I shouldn't need to query my DB to snag the URL!
I want to use it with reverse()
.
Exactly the same as this question, but there must be a way to do it without the Sites module. That's just silly... I shouldn't need to query my DB to snag the URL!
I want to use it with reverse()
.
Examine Request.META
dictionary that comes in. I think it has server name and server port.
Use handy build_absolute_uri() method on request, pass it the relative url and it'll give you full one.