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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd5e8c879c374890fae9671f04430b9287ccb3f9204d9bb76a1edd6fcc93247 |
|
MD5 | aba8049b74407b03cd483162f383d95e |
|
BLAKE2b-256 | 05f0bb23b030142ff483ecd41abfe8d284359cd913dc759eadbd0855bd154754 |
Hashes for django_project_version-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2aa4c22bf310e64da080e0052c3ac036b9d4d67e0ac101a04b65738e55c1a4 |
|
MD5 | f7690b54faeda7aa1129174521aba74b |
|
BLAKE2b-256 | 2c395ae160f6dcc71a385cd54bb859d277cb711473300b6ea154b80fced933c1 |