Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
django-branding / branding / brand_settings.py
Size: Mime:
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured


BRAND_DB = getattr(settings, 'BRAND_DB', 'default')
if BRAND_DB not in settings.DATABASES:
    raise ImproperlyConfigured('BRAND_DB invalid - no such database: %s.' % BRAND_DB)

if not settings.DATABASE_ROUTERS:
    settings.DATABASE_ROUTERS = []

settings.DATABASE_ROUTERS += ('branding.routers.BrandingRouter',)