Skip to main content

django-git is a simple Django app to:

  • show all the Git projects stored in a local directory

  • give a detail view of each project (dashboard) * number of commits * number of days since the last commit * number of hours spent on the project * when the commits were made

Table of contents

Installation

Install with pip:

pip install dj-git

Requirements:

  • Python 3

  • Django 1.9

  • pygit2

  • pygal

  • pytz

Quick start

  1. In settings.py, add ‘git’ to your INSTALLED_APPS like this:

    INSTALLED_APPS = [
        ...
        'git',
    ]

and specify the path to your Git repositories:

PROJECTS_DIR = "path/to/git_repositories"

If necessary, set your database configuration. For example, for PostgreSQL:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': '<dbname>',
        'USER': '<username>',
        'HOST': '<host>'
    }
}
  1. In urls.py, include the git URLconf in your project this:

    from django.conf.urls import url, include
    
    urlpatterns = [
        ...
        url(r'^git/', include('git.urls')),
    ]
  2. Run the following command to create the git models:

    python manage.py migrate
  3. Update the Git projects:

    python manage.py updategitprojects
  4. Start the development server:

    python manage.py runservser

and visit http://127.0.0.1:8000/admin/

  1. Visit http://127.0.0.1:8000/git to see your Git projects

Tests

Run the tests with:

python runtests.py

Contribute

The project is still in its early stage. There are probably many aspects to improve and bugs to fix. Feel free to send pull requests.

License

MIT. See LICENSE for more details.

Release files for dj-git 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dj-git 0.3
File Size Uploaded
dj-git-0.3.tar.gz 52.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dj-git 0.3
File Interpreter ABI Platform
dj_git-0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size:111.6 kB

Release files / dj-git-0.3.tar.gz

Download URL dj-git-0.3.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c4ea042432506e996d6cfa3f2248cf304aa32cbdabc7eb40e2811864389b369a
BLAKE2b-256 checksum
How to use checksums
f0614c05b3a482eea17fde6354a1c859492d78f67557fb0e99be3305900131f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dj_git-0.3-py2.py3-none-any.whl

Download URL dj_git-0.3-py2.py3-none-any.whl
Size 59.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dcf86b75fee4ee73b7cec36d68f6d68d74478997b5d3332ad015f7018b70230e
BLAKE2b-256 checksum
How to use checksums
4fdc9f6f885180de9f7b01adb8bf4d14363121645c104016ec0870e9f7e28947
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page