Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Kibrit -- an open source git version parser for Django

Project description


A git version parser for django templates.


The intent of django_kibrit is to burn the css cache of the client upon a change in the project.

# Somewhere in your templates
<link href="{{ STATIC_URL }}css/screen.css{{ KIBRIT_REVISION }}" media="screen, projection" rel="stylesheet" type="text/css" />


pip install django_kibrit

Kibrit makes use of the `memcached` library in django. To enable this place

'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',

To use kibrit on your templates append the following 2 lines at the end of your projects ``.

TEMPLATE_CONTEXT_PROCESSORS += ('django_kibrit.context_processors.revision',)
INSTALLED_APPS += 'django_kibrit',

The package can try to detect .git in your project automatically but it is best if you explicitly set KIBRIT_PATH in your settings to where the .git file is in your project.

KIBRIT_PATH = '/path/to/your/.git' # You've found it when 'ls -al | grep .git' prints the .git file

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_kibrit-0.3.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Mar 17, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page