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

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page