Merge pull request #1164 from framasoft/fix-custom-templates-settings
🐛 — Fix UMAP_CUSTOM_TEMPLATES setting
This commit is contained in:
commit
06cdb55a6c
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ if path:
|
||||||
# Retrocompat pre 1.0, remove me in 1.1.
|
# Retrocompat pre 1.0, remove me in 1.1.
|
||||||
globals()['UMAP' + key[15:]] = value
|
globals()['UMAP' + key[15:]] = value
|
||||||
elif key == 'UMAP_CUSTOM_TEMPLATES':
|
elif key == 'UMAP_CUSTOM_TEMPLATES':
|
||||||
|
if 'DIRS' in globals()['TEMPLATES'][0]:
|
||||||
globals()['TEMPLATES'][0]['DIRS'].insert(0, value)
|
globals()['TEMPLATES'][0]['DIRS'].insert(0, value)
|
||||||
|
else:
|
||||||
|
globals()['TEMPLATES'][0]['DIRS'] = [value]
|
||||||
elif key == 'UMAP_CUSTOM_STATICS':
|
elif key == 'UMAP_CUSTOM_STATICS':
|
||||||
globals()['STATICFILES_DIRS'].insert(0, value)
|
globals()['STATICFILES_DIRS'].insert(0, value)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue