Skip to main content

Django reusable app to show your project version

Project description

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

Installation

  • Obtain your copy of source code from the git repository: git clone https://github.com/DCOD-OpenSource/django-project-version.git. Or download the latest release from https://github.com/DCOD-OpenSource/django-project-version/tags/.
  • Run python ./setup.py install from repository source tree or unpacked archive. Or use pip: pip install django-project-version.

Configuration

Add "djversion" to settings.INSTALLED_APPS.

INSTALLED_APPS += (
    "djversion",
)

Settings

DJVERSION_VERSION
Contains project version. Defaults to None.
DJVERSION_UPDATED
Contains project update date or datetime. Defaults to None.
DJVERSION_FORMAT_STRING
Contains version and updated format string. Defaults to "{version} ({updated})".

Usage

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

TEMPLATE_CONTEXT_PROCESSORS += (
    "djversion.context_processors.version",
)

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

For example:

{% load djversion_tags %}

{% project_version as VERSION %}
{{ VERSION }}

Licensing

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

Contacts

Project Website: https://github.com/DCOD-OpenSource/django-project-version/

Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>

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.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_project_version-0.2.0-py2-none-any.whl (5.5 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size django-project-version-0.2.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page