mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 00:15:20 +00:00
[Update] 统一可连接性,添加sql debug
This commit is contained in:
@@ -26,10 +26,10 @@ def refresh_settings_on_changed(sender, instance=None, **kwargs):
|
||||
def monkey_patch_settings(sender, **kwargs):
|
||||
cache_key_prefix = '_SETTING_'
|
||||
custom_need_cache_settings = [
|
||||
'AUTHENTICATION_BACKENDS'
|
||||
'AUTHENTICATION_BACKENDS', 'TERMINAL_HOST_KEY',
|
||||
]
|
||||
custom_no_cache_settings = [
|
||||
'BASE_DIR', 'VERSION', 'AUTH_OPENID'
|
||||
'BASE_DIR', 'VERSION', 'AUTH_OPENID',
|
||||
]
|
||||
django_settings = dir(global_settings)
|
||||
uncached_settings = [i for i in django_settings if i.isupper()]
|
||||
|
Reference in New Issue
Block a user