diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-02-13 11:44:12 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-02-13 11:44:12 +0100 |
commit | 5e48bd4369200669821e67b2d3ca8eb4ea36faeb (patch) | |
tree | 22eba360ab0f2ad5123c4337a51dc106c32f0e9d /hyperkitty/context_processors.py | |
parent | 0a1f8de9b4537f0e0d67e694ff8746003e20f3c8 (diff) | |
download | hyperkitty-5e48bd4369200669821e67b2d3ca8eb4ea36faeb.tar.gz hyperkitty-5e48bd4369200669821e67b2d3ca8eb4ea36faeb.tar.xz hyperkitty-5e48bd4369200669821e67b2d3ca8eb4ea36faeb.zip |
Use context processors to export settings
Diffstat (limited to 'hyperkitty/context_processors.py')
-rw-r--r-- | hyperkitty/context_processors.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hyperkitty/context_processors.py b/hyperkitty/context_processors.py index d8f11ab..36b1be9 100644 --- a/hyperkitty/context_processors.py +++ b/hyperkitty/context_processors.py @@ -21,5 +21,7 @@ from django.conf import settings -def app_name(context): - return {'app_name' : settings.APP_NAME} +def export_settings(context): + exports = ["APP_NAME", "USE_MOCKUPS", "USE_INTERNAL_AUTH"] + return dict( (name.lower(), getattr(settings, name)) + for name in exports) |