settings: close local settings file (#61978)
This commit is contained in:
parent
0e4aa8e784
commit
d954071784
|
@ -242,4 +242,5 @@ EXTRA_SENDERS = False
|
|||
|
||||
local_settings_file = os.environ.get('DOCBOW_SETTINGS_FILE', 'local_settings.py')
|
||||
if os.path.exists(local_settings_file):
|
||||
exec(open(local_settings_file).read())
|
||||
with open(local_settings_file) as f:
|
||||
exec(f.read())
|
||||
|
|
Loading…
Reference in New Issue