Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

A simple Django app to manage your Git projects.

Project Description

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

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 history Release notifications

This version
History Node

0.3

History Node

0.1

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
dj_git-0.3-py2.py3-none-any.whl (59.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jun 26, 2016
dj-git-0.3.tar.gz (52.3 kB) Copy SHA256 hash SHA256 Source None Jun 26, 2016

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