Commit 919d26d97d1362b61c2419fdc2ad08ac7f800e0c
1 parent
d27fda8c
Exists in
master
and in
34 other branches
Add custom templates to configuration
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
colab/settings.py
... | ... | @@ -319,3 +319,13 @@ COLAB_APPS = locals().get('COLAB_APPS') or {} |
319 | 319 | |
320 | 320 | for app in COLAB_APPS: |
321 | 321 | INSTALLED_APPS += (app,) |
322 | + | |
323 | + if not app or 'templates' not in app: | |
324 | + continue | |
325 | + | |
326 | + template = app.get('templates') | |
327 | + | |
328 | + if template.get('staticdir'): | |
329 | + STATICFILES_DIRS += template.get('staticdir') | |
330 | + if template.get('templatesdir'): | |
331 | + TEMPLATE_DIRS += template.get('templatesdir') | ... | ... |