🐛 — Fix UMAP_CUSTOM_TEMPLATES setting

This commit is contained in:
Luc Didry 2023-06-21 13:55:41 +02:00
parent bbf4b72e07
commit 1adbadbd57
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C

View file

@ -39,7 +39,10 @@ if path:
# Retrocompat pre 1.0, remove me in 1.1.
globals()['UMAP' + key[15:]] = value
elif key == 'UMAP_CUSTOM_TEMPLATES':
globals()['TEMPLATES'][0]['DIRS'].insert(0, value)
if 'DIRS' in globals()['TEMPLATES'][0]:
globals()['TEMPLATES'][0]['DIRS'].insert(0, value)
else:
globals()['TEMPLATES'][0]['DIRS'] = [value]
elif key == 'UMAP_CUSTOM_STATICS':
globals()['STATICFILES_DIRS'].insert(0, value)
else: