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 / routers.py
Size: Mime:
from . import brand_settings


class BrandingRouter(object):
    def db_for_read(self, model, **hints):
        if model._meta.app_label == 'branding':
            return brand_settings.BRAND_DB

    def db_for_write(self, model, **hints):
        if model._meta.app_label == 'branding':
            return brand_settings.BRAND_DB