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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -