Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Django reusable app to show your project version

Project description

Travis Coveralls Requires License Version Supported Python version Supported Django version Package format Python wheel support Package status

django-project-version is a Django reusable app to show your project version


  • Obtain your copy of source code from the git repository: $ git clone Or download the latest release from
  • Run $ python ./ install from the repository source tree or unpacked archive. Or use pip: $ pip install django-project-version.


  • Add "djversion" to settings.INSTALLED_APPS.



Contains project version. Defaults to None.
Contains project update date or datetime. Defaults to None.
Contains version and updated format string. Defaults to "{version} ({updated})".
Contains path to git repository from where version info can get. Defaults to None.
Indicate usage of git repository current tag as project version. Defaults to False.
Indicate usage of git repository last commit hash as project version. Defaults to False.


If you want always have "VERSION" variable in templates context, just add "djversion.context_processors.version" to settings.TEMPLATE_CONTEXT_PROCESSORS



Or you can use project_version templatetag which can be loaded from djversion_tags.

{# footer.html #}

{% load djversion_tags %}

{% project_version as VERSION %}

Also simple management command print-version which prints project version to stdout is available. Just run: $ python ./ print-version from project folder.

Advanced features

If you want to have REST-style view with your project version:

  • Install django-project-version with additional dependencies: $ pip install django-project-version[rest].
  • Extend you settings.INSTALLED_APPS by adding "rest_framework".

  • Add "djversion" to your URLs definitions:

from django.conf.urls import url

urlpatterns += [
    url(r"^version/", include("djversion.urls")),

Or to use information from the project git repository as project version:

  • Install django-project-version with additional dependencies: $ pip install django-project-version[git].
  • Configure git related settings.


django-project-version uses the MIT license. Please check the MIT-LICENSE file for more details.


Project Website:

Author: DCOD <>

For other authors list see AUTHORS file.

Project details

Download files

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

Files for django-project-version, version 0.12.0
Filename, size File type Python version Upload date Hashes
Filename, size django_project_version-0.12.0-py3-none-any.whl (12.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size (21.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page