A middleware retrieving a project version from settings and returning it in the response headers.
Project description
django-version
A middleware retrieving a project version from settings and returning it in the response headers.
Appends X-Project-Version: a.b.c
to every response.
Installation
$ pip install django-version
Usage
- Append
django_version
toINSTALLED_APPS
- Append
django_version.VersionMiddleware
toMIDDLEWARE
- Set your project version into the setting key
PROJECT_VERSION
as a string
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-version-1.0.0.tar.gz
(3.0 kB
view hashes)