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 details)
File details
Details for the file django-version-1.0.0.tar.gz
.
File metadata
- Download URL: django-version-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66da42572d65a793c0fc6d3e440b02c4a80c24813110e3497513e47cdb958a81 |
|
MD5 | ecb95418fb824b1d5b026f03ce31c7e1 |
|
BLAKE2b-256 | 9ddc2991a41764d8499957ba3da7f400e58e272dd0d002f906df61a4aa14f06f |