Jelajahi Sumber

Closes #16127: Enable loading local settings

Jeremy Stretch 1 tahun lalu
induk
melakukan
fcc8eccb6c
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  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