diff options
author | Stephen Finucane <stephen@that.guru> | 2016-11-19 18:31:34 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-03-01 22:11:05 +0000 |
commit | 7b07b71e9551a303f4837aaa6e5bbefa3d56d139 (patch) | |
tree | 4f657ff63cca5989cda892bea236a3b1341d909e /patchwork/settings | |
parent | 0ffc8ab3583944bd7ba8690c97429b22be7e4492 (diff) | |
download | patchwork-7b07b71e9551a303f4837aaa6e5bbefa3d56d139.tar patchwork-7b07b71e9551a303f4837aaa6e5bbefa3d56d139.tar.gz |
templates: Add Patchwork version
This is managed using a combination of hardcoded string, for
installations from tarball, and 'git describe', for installations from
a Git repo.
This includes installing Git in the Docker environment, to enable this
in the development environment.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Acked-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork/settings')
-rw-r--r-- | patchwork/settings/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/patchwork/settings/base.py b/patchwork/settings/base.py index 6737350..180a469 100644 --- a/patchwork/settings/base.py +++ b/patchwork/settings/base.py @@ -70,6 +70,7 @@ if django.VERSION >= (1, 8): 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'patchwork.context_processors.site', + 'patchwork.context_processors.version', ], }, }, @@ -85,6 +86,7 @@ else: 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'patchwork.context_processors.site', + 'patchwork.context_processors.version', ] |