Codacy warning about constant names

This commit is contained in:
Valentin Samir 2016-07-20 18:46:33 +02:00
parent 004e76f29e
commit 8a4a4a833f
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ CAS_FEDERATE = False
#: Time after witch the cookie use for “remember my identity provider” expire (one week).
CAS_FEDERATE_REMEMBER_TIMEOUT = 604800
current_global = globals().copy()
for name, default_value in current_global.items():
GLOBALS = globals().copy()
for name, default_value in GLOBALS.items():
# get the current setting value, falling back to default_value
value = getattr(settings, name, default_value)
# set the setting value to its value if defined, ellse to the default_value.