Klaus is a simple Git web viewer that Just Works™ originally created by Jonas Haag, written in Flask.
If you need just to host a standalone Git web viewer, then check out the original which makes it easier. On the other hand, if you need to integrate a Git viewer with a django application, then this is a way to go!
dulwichis used to handle git repositories along withpygmentsto highlight the results.ReSTandMarkdownrendering is supported ifdocutils/markdownis available
pip install django-klaus
in settings.py:
INSTALLED_APPS = (
(...),
'klaus'
)
in urls.py:
url(r'^klaus/', include('klaus.urls', namespace='klaus'))
In settings.py set KLAUS_REPO_PATHS to list of paths to repositories you would like to list.
KLAUS_REPO_PATHS = ['/path/to/git/repo/']
Repositories can be also managed dynamically using klaus.repo.RepoManager class.
For extra information reference the original