Skip to main content

A simple Django app to manage your Git projects.

Project description

==========
django-git
==========

**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`_
* `Quick start`_
* `Contribute`_
* `Tests`_
* `License`_

---------------


Installation
------------

Requirements:

* Python 3
* Django 1.9
* pygit2
* pygal
* pytz

Install with pip::

pip install django-git


Quick start
-----------

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

INSTALLED_APPS = [
...
'git',
]

2. 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>'
}
}

3. 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')),
]

3. Run the following command to create the git models::

python manage.py migrate

4. 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/

5. 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.

Project details


Download files

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

Source Distribution

dj-git-0.1.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dj_git-0.1-py2.py3-none-any.whl (59.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dj-git-0.1.tar.gz.

File metadata

  • Download URL: dj-git-0.1.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-git-0.1.tar.gz
Algorithm Hash digest
SHA256 8c688239eaa888967e50935da2059b2cf69cc1967a40b99735211a25934234e6
MD5 954a2fd96f5174b3e1ccb1c1d755838f
BLAKE2b-256 fdcac95f87de33f6e23f1c51dbc7607995e31b6d43d5e2e28c1aa795fd07e681

See more details on using hashes here.

File details

Details for the file dj_git-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_git-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5cef05bf35c963063e9c6e9802a35eea8e405a4ebff8f5166aabb3396dd0bfd9
MD5 fe81a72e0afe63b90497e49c1bf70734
BLAKE2b-256 ef237319dcac5d16eaed19ab445de6cf2707ce1d3b1772e087a9f9ea5e14a1f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page