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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-project-version-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c1cbafc9ad99be58aced2eba4d838a87134ea9c482259a9018ce7d47be746c |
|
MD5 | bad39a925d99c987ba339db41ee9b916 |
|
BLAKE2b-256 | 0289c763c5bb6f91f5046d091f77653296236c0f8df00aba1860e0700dda12e7 |
Hashes for django_project_version-0.2.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb08b34b893527316b3950a8610f285d293d0fa01beeba6e468863db17fde877 |
|
MD5 | 233b57f2c90b19bbc886276feb149fc9 |
|
BLAKE2b-256 | a05216d8a4a8f38c2f8695603a4167674b034e0c383b191af5c67d0db5e912e7 |