Django Octocat
A Django app for handling github users and repos.
Installation
To get the latest stable release from PyPi
pip install django-octocat
To get the latest commit from GitHub
pip install -e git+git://github.com/Celc/django-octocat.git#egg=github
Add github to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'github',
)
Add the github URLs to your urls.py
urlpatterns = patterns('',
...
url(r'^github/', include('github.urls', namespace='github')),
)
Add github.middlewares.GithubAuthorizationMiddleware to your MIDDLEWARE_CLASSES
MIDDLEWARE_CLASSES = (
...
'github.middlewares.GithubAuthorizationMiddleware',
)
Add github.backends.GithubBackend to your AUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = (
...
'github.backends.GithubBackend',
)
Don’t forget to migrate your database
./manage.py migrate github
If you are planning on cloning the repos set the target directory in settings.py
import tempfile
GITHUB_ROOT = tempfile.gettempdir()
Finally add the Github settings under /admin.
Usage
To authenticate users send them to {% url 'github:authorize' pk=1 %} where pk is the id of the Github app.
Contribute
mkvirtualenv django-octocat
make develop
Add code, write test, send pull request.
Octocat
Octocat is a trademark owned by GitHub Inc and is used with permission. The library is in no way affiliated, maintained or sponsored by GitHub Inc.
Metadata
Release files for django-octocat 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-octocat-0.2.1.tar.gz | 12.6 kB | Without provenance | Details |
Release files / django-octocat-0.2.1.tar.gz
| Download URL | django-octocat-0.2.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
267cf16ed97412d23d0042d0759ed9611ef32dd017d7de31138f417e1f1a29ab
|
|
BLAKE2b-256 checksum How to use checksums |
e8c59c64c4dd29fe18a80e0efa18a9dfd38b843ff0369e320249cf483a5f69e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-octocat 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.