Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad Import alias FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str NameLoad Assign NameStore Call NameLoad Return NameLoad decorator_list
N/A django.conf settings django.core.exceptions ImproperlyConfigured django.utils.importlib import_module db_multitenant.mapper TenantMapper N/A _CACHED_MAPPER None N/A os update_database_from_env N/A N/A db_dict N/A N/A django.db connection N/A dbname N/A N/A N/A os environ get TENANT_DATABASE_NAME N/A dbname N/A N/A N/A db_dict N/A NAME dbname N/A N/A N/A N/A N/A connection get_threadlocal set_dbname dbname N/A update_cache_from_env N/A N/A cache_dict N/A N/A django.db connection N/A cache_prefix N/A N/A N/A os environ get TENANT_CACHE_PREFIX N/A N/A cache_prefix None N/A N/A N/A cache_dict N/A KEY_PREFIX cache_prefix N/A N/A N/A N/A N/A connection get_threadlocal set_cache_prefix cache_prefix N/A get_mapper N/A N/A N/A N/A N/A Returns the mapper. N/A _CACHED_MAPPER N/A N/A _CACHED_MAPPER N/A N/A name N/A getattr settings MULTITENANT_MAPPER_CLASS None N/A N/A name N/A N/A N/A ImproperlyConfigured You must specify MULTITENANT_MAPPER_CLASS in settings. N/A N/A N/A N/A module_path member_name N/A N/A name rsplit . 1 N/A module N/A import_module module_path N/A cls N/A getattr module member_name N/A N/A N/A N/A ValueError ImportError AttributeError N/A e N/A N/A N/A ImportError N/A Could not import mapper: %s: %s N/A name e N/A N/A N/A issubclass cls TenantMapper N/A N/A N/A ImproperlyConfigured %s does not subclass db_multitenant.mapper.TenantMapper name N/A _CACHED_MAPPER N/A cls N/A _CACHED_MAPPER N/A