1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 11:27:18 +00:00

Add ENABLE_SETTINGS_VIA_WEB setting and remoke CONSTANCE_ENABLED

This commit is contained in:
zhengxie
2016-05-27 10:32:36 +08:00
parent 1b9b18c2cb
commit 346c228495
3 changed files with 5 additions and 3 deletions

View File

@@ -2182,7 +2182,7 @@ def sys_sudo_mode(request):
def sys_settings(request):
"""List and change seahub settings in admin panel.
"""
if not dj_settings.CONSTANCE_ENABLED:
if not dj_settings.ENABLE_SETTINGS_VIA_WEB:
raise Http404
DIGIT_WEB_SETTINGS = (