[Update] 统一可连接性,添加sql debug

This commit is contained in:
ibuler
2019-06-24 20:16:18 +08:00
31 changed files with 313 additions and 224 deletions

View File

@@ -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()]