Django-GitHub-Revision
Publishes information about the git revision that is running and links to the GitHub repository.
Getting Started
Prerequisites
Do you need exists project managed by Django to use this project.
Installing
To get up application running install it:
pip install django_github_revision
Next to update Django settings:
INSTALLED_APPS += ['github_revision', ]
GITHUB_REVISION_REPO_URL = 'https://github.com/watchdogpolska/django-github-revision'
Finally use template tags:
{% load github_revision_tags %}
{% github_link %}
Alternatively use context processors available at `github_revision.context_processors.github_revision`
.
Raven integration
If you use Sentry you propably want use following settings:
from dealer.auto import auto
RELEASE_ID = auto.revision
RAVEN_CONFIG = {
'dsn': env.str('RAVEN_DSN', 'http://example.com'),
'release': RELEASE_ID
}
Running the tests
To run tests execute:
tox
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Adam Dobrawy - Initial work - ad-m
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details