/ Published in: Python

In template: http://{{ site.domain }}
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from django.contrib.sites.models import Site Site.objects.get_current()
URL: http://docs.djangoproject.com/en/dev/ref/contrib/sites/
Comments
