Explorar o código

Closes #16127: Enable loading local settings

Jeremy Stretch %!s(int64=2) %!d(string=hai) anos
pai
achega
fcc8eccb6c
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      netbox/netbox/settings.py

+ 7 - 0
netbox/netbox/settings.py

@@ -801,3 +801,10 @@ for plugin_name in PLUGINS:
     RQ_QUEUES.update({
         f"{plugin_name}.{queue}": RQ_PARAMS for queue in plugin_config.queues
     })
+
+# UNSUPPORTED FUNCTIONALITY: Import any local overrides.
+try:
+    from .local_settings import *
+    _UNSUPPORTED_SETTINGS = True
+except ImportError:
+    pass