Skip to main content

Django reusable app to show your project version

Project description

Travis Coverage Codacy Requires pypi-license pypi-version pypi-python-version pypi-django-version pypi-format pypi-wheel pypi-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.


django-project-version settings

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 %}

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:

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.3.1
Filename, size File type Python version Upload date Hashes
Filename, size django_project_version-0.3.1-py3-none-any.whl (9.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-project-version-0.3.1.tar.gz (7.5 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