In my view i execute Site.objects.get_current().domain
but the result is empty string.
So, how can i get the domain name to compose right url?
Hosting is dreamhost.
The problem waas that it was executing the old instance of webapp (that didn't use sites module) So i have resolved with pkill python command.