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 git repository: git clone https://github.com/DCOD-OpenSource/django-project-version.git. Or download 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.
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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b9df6bbc5d659e5f05754e54d41abc07759352f01bde90a37abbb7bc13ee62e |
|
MD5 | 8bd47c3c5515afdd3ab54d79a48e2047 |
|
BLAKE2b-256 | 4053f4c1695bb921aa2d10722a2998556204b190e9174c875e5e654867817a6a |
Hashes for django_project_version-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a37a0b179a3125588329d48a4fd20e4f3ab1255dfe8c2cfd48489dda16b164 |
|
MD5 | 5c69fbc7e5e739bc1c8e96b3da5b273f |
|
BLAKE2b-256 | 274682087804814f8da59f3f9ccb24037b921d869fe72c251b3f4915dc37118e |