django
Project description
django-git-version
A simple django app that uses gitpython to provide templatetag(s) to display git version info from the current repo.
Installation
First, install this package using pip
$ pip install django-git-version
then add git_version
to INSTALLED_APPS
in your Django settings.py
:
INSTALLED_APPS = (
...
'git_version'
...
)
Usage
Load the templatetag with
{% load git_tags %}
and then use one of
{% current_commit_short '.' %}
{% current_commit '.' %}
Where '.'
is the path to the git repo
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
File details
Details for the file django-git-version-0.1.0.tar.gz
.
File metadata
- Download URL: django-git-version-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b213edb3ded914aa98ee9e115e156e2635badf9a2cc133d07deaea79d77833f |
|
MD5 | 9ab84e138af5570772aafb238b0eb8ce |
|
BLAKE2b-256 | fee9061195abb6824b48f30150f6dce9c8ce584d32c49efa286c49fe3b1394ee |
File details
Details for the file django_git_version-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_git_version-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd35968e00ab138360e8a5fe1140cba72a2acff7c9987e4ead5e7cfbad3c1dd |
|
MD5 | 7a4ed1ba37b23f3ebf5abadb6aad0599 |
|
BLAKE2b-256 | 077f4b3afb14db5d8c8a60723eb58ce51942f3e78ce41099a8d699a1c581e4c1 |