diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-27 16:20:24 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-27 16:20:24 -0500 |
| commit | 1eb7582e6a291f2c5b3a30c408cb50f199fa6eac (patch) | |
| tree | 521bd9ce0deeb5ae9b082d8834583d5977c4f06f /app/dispatch/context_processors.py | |
| parent | 807c082bc71ed79651533551111b0e3507ae410b (diff) | |
| download | dispatch-tracker-1eb7582e6a291f2c5b3a30c408cb50f199fa6eac.tar.gz dispatch-tracker-1eb7582e6a291f2c5b3a30c408cb50f199fa6eac.tar.xz | |
Add snippets to the home page from the configuration file
Diffstat (limited to 'app/dispatch/context_processors.py')
| -rw-r--r-- | app/dispatch/context_processors.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/dispatch/context_processors.py b/app/dispatch/context_processors.py new file mode 100644 index 0000000..d6d50d5 --- /dev/null +++ b/app/dispatch/context_processors.py @@ -0,0 +1,10 @@ +from django.conf import settings + + +def additional_template_vars(request): + """ + A neat little hack to load up + additional variables into templates directly into the templates + """ + return {"template_vars": settings.TEMPLATE_VARS} + |
