Search code examples
pythondjangowebdreamhostdomain-name

dreamhost+django: cannot get domain name using site framework


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.


Solution

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