Open mhdask opened 2 weeks ago
The connection 'schema_branch_BRANCH' doesn't exist
This error message suggests that the DATABASES
setting was not loaded from local_settings.py
. This may be a complication of your Docker implementation. Check that local_settings.py
exists in the same path as settings.py
.
@jeremystretch
The connection 'schema_branch_BRANCH' doesn't exist
This error message suggests that the
DATABASES
setting was not loaded fromlocal_settings.py
. This may be a complication of your Docker implementation. Check thatlocal_settings.py
exists in the same path assettings.py
.
local_settings.py
is located in the same path as settings.py
:
/home/user/development/netbox/netbox/netbox/local_settings.py
/home/user/development/netbox/netbox/netbox/settings.py
Plugin Version
0.5.1
NetBox Version
4.1.6
Python Version
3.10.12
Steps to Reproduce
My setup looks like this: I am running postgresql and redis in docker, using docker-compose:
GRANT CREATE ON DATABASE $database TO $user;
netbox_branching
as the last plugin in the fileWrap DATABASES with DynamicSchemaDict for dynamic schema support
DATABASES = DynamicSchemaDict({ 'default': DATABASE, })
Employ our custom database router
DATABASE_ROUTERS = [ 'netbox_branching.database.BranchAwareRouter', ]