From 919d26d97d1362b61c2419fdc2ad08ac7f800e0c Mon Sep 17 00:00:00 2001 From: Gust Date: Tue, 3 Mar 2015 10:51:10 -0300 Subject: [PATCH] Add custom templates to configuration --- colab/settings.py | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/colab/settings.py b/colab/settings.py index 625603f..784d025 100644 --- a/colab/settings.py +++ b/colab/settings.py @@ -319,3 +319,13 @@ COLAB_APPS = locals().get('COLAB_APPS') or {} for app in COLAB_APPS: INSTALLED_APPS += (app,) + + if not app or 'templates' not in app: + continue + + template = app.get('templates') + + if template.get('staticdir'): + STATICFILES_DIRS += template.get('staticdir') + if template.get('templatesdir'): + TEMPLATE_DIRS += template.get('templatesdir') -- libgit2 0.21.2