django-version

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


License
MIT
Install
pip install django-version==1.0.0

Documentation

django-version

A middleware retrieving a project version from settings and returning it in the response headers. It will append X-Project-Version: <a value> to every response.

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 inside to the setting key PROJECT_VERSION