소스 검색

Closes #16127: Enable loading local settings

Jeremy Stretch 2 년 전
부모
커밋
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({
         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