Переглянути джерело

Closes #16127: Enable loading local settings

Jeremy Stretch 1 рік тому
батько
коміт
fcc8eccb6c
1 змінених файлів з 7 додано та 0 видалено
  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({
     RQ_QUEUES.update({
         f"{plugin_name}.{queue}": RQ_PARAMS for queue in plugin_config.queues
         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