Skip to main content

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.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-version, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django-version-1.0.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page