Django Settings Site Domain example.com

Created on Aug. 17, 2012, 8:27 p.m.
Language: en
Category: Coding, Django
Description:

    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

URL: http://codespatter.com/2009/01/05/django-settings-site-domain-examplecom/


Update

Comment on This Data Unit