Commit 919d26d97d1362b61c2419fdc2ad08ac7f800e0c

Authored by Gust
1 parent d27fda8c

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(&#39;COLAB_APPS&#39;) 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')
... ...