Skip to content

A middleware retrieving a project version from settings and returning it in the response headers

License

Notifications You must be signed in to change notification settings

NyanKiyoshi/django-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Requirement Status Version Supported versions Supported implementations

Installation

$ pip install django-version

Usage

  1. Append django_version to INSTALLED_APPS
  2. Append django_version.VersionMiddleware to MIDDLEWARE
  3. Set your project version into the setting key PROJECT_VERSION as a string

About

A middleware retrieving a project version from settings and returning it in the response headers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages