unitas-netbox/www-apps/netbox/files/local_settings_branching.py
2025-03-05 14:28:19 +01:00

19 lines
420 B
Python

###########################
# netbox_branching settings
###########################
#
from netbox_branching.utilities import DynamicSchemaDict
from .configuration import DATABASE
# Wrap DATABASES with DynamicSchemaDict for dynamic schema support
DATABASES = DynamicSchemaDict({
'default': DATABASE,
})
# Employ our custom database router
DATABASE_ROUTERS = [
'netbox_branching.database.BranchAwareRouter',
]