Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/j/django-multitenant-HEAD/tenant/providers.py   django-multitenant(Download)
 
        if kt not in self.store and settings.MULTITENANT_TENANT_DATABASE in self.store:
            if kt not in settings.MULTITENANT_PUBLIC_DATABASES:
                from tenant.models import Tenant
                try:

src/d/j/django-multitenant-HEAD/tenant/management/commands/syncdb.py   django-multitenant(Download)
        random.shuffle(databases)
        for database in databases:
            if database not in settings.MULTITENANT_PUBLIC_DATABASES:
                connect_tenant_provider(dispatch_uid, database)
 

src/d/j/django-multitenant-HEAD/tenant/management/commands/migrate.py   django-multitenant(Download)
        random.shuffle(databases)
        for database in databases:
            if database not in tenant_settings.MULTITENANT_PUBLIC_DATABASES:
                db.dbs[database] = self.get_south_wrapper(database, settings.DATABASES[database]['ENGINE'])
                connect_tenant_provider(self, database)