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 details)

Uploaded Source

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

Hashes for django-version-1.0.0.tar.gz
Algorithm Hash digest
SHA256 66da42572d65a793c0fc6d3e440b02c4a80c24813110e3497513e47cdb958a81
MD5 ecb95418fb824b1d5b026f03ce31c7e1
BLAKE2b-256 9ddc2991a41764d8499957ba3da7f400e58e272dd0d002f906df61a4aa14f06f

See more details on using hashes here.

Supported by

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