January 09, 2010 15:44 / 0 comments / django github python

django-github is, as you might expect, a Django app for integration with GitHub. It is based on my work for this site's projects section, and has some basic features:

  • track commits to your projects
  • download the entire source tree
  • automation via web-hooks

I used my GitHub API library, and wrapped the functionality up in a simple Django app. The app has models for projects (repos), commits, and blobs, and the object_list/object_detail type views you would expect. It also has a view that can be used with GitHub's service hooks, which post some JSON to a URL whenever you push to your repo.

Service hooks can be edited on your repo's admin page

http://www.charlesleifer.com/photos/githubs-admin-page/

Point at the URL(s) you want to listen on, and every time you commit the app updates

http://www.charlesleifer.com/photos/github-service-hooks/

Related Links

Comments (0)

Commenting has been closed, but please feel free to contact me