Teh default example.com is in the database. It possible to change it throught the admin. It is in the django_site table.
from django.contrib.sites.models import Site domain = Site.objects.get_current().domain
Comment on This Data Unit