Posted By

tclancy on 06/18/10


Tagged


Versions (?)

Django: Get Current Site & Display It


 / Published in: Python
 

URL: http://docs.djangoproject.com/en/dev/ref/contrib/sites/

In template: http://{{ site.domain }}

  1. from django.contrib.sites.models import Site
  2. Site.objects.get_current()

Report this snippet  

You need to login to post a comment.