django sites framework custom settings for each site -
how can extend django sites framework
?
i need add more fields, logo file, subtitle, etc.
or other solution kind of thing?
just make onetoone
relation site model
from django.contrib.sites.models import site class customsite(models.model): class meta: verbose_name = "custom domain" verbose_name_plural = "custom domains" site = models.onetoonefield(site, null=true, related_name='customsite') subtitle = models.charfield(max_length=100) #... #... def __unicode__(self): return 'customsite of {0}'.format(self.site.domain)
Comments
Post a Comment