Skip to content

django templatetag library for displaying git version info

Notifications You must be signed in to change notification settings

d120/django-git-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

django templatetag library for displaying git version info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages