-
Notifications
You must be signed in to change notification settings - Fork 8
Update documentation to Netbox 4.3 #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note: This is not required, it is backwards compatible so the old settings will still work. |
Well, it crashes for me with an import exception without this update... EDIT: how can it be backward compatible if the variable Maybe you mean that for users who update netbox there is no need to update the |
So maybe something like this is better? :) # ...
-from .configuration import DATABASE
-DATABASES = DynamicSchemaDict({
- 'default': DATABASE,
-})
+try:
+ from .configuration import DATABASES
+ DATABASES = DynamicSchemaDict(DATABASES)
+except ImportError:
+ from .configuration import DATABASE
+ DATABASES = DynamicSchemaDict({
+ 'default': DATABASE,
+ })
# ... or the other way around: first trying to import |
Uh oh!
There was an error while loading. Please reload this page.
Change Type
Correction
Proposed Changes
Since netbox-community/netbox@d4f8cb7,
netbox.configuration
has changedDATABASE
toDATABASES
(plural). This change should be reflected in this plugins setup documentation.Therefore the following change in the
local_settings.py
is required for netbox >= 4.3:The text was updated successfully, but these errors were encountered: