Oauth2 Django App for Deviantart
## Installation
pip install django-deviantart
add deviantart to your settings.
INSTALLED_APPS = [
...
'deviantart'
]
Go to [the deviantart developer program](http://www.deviantart.com/developers/register) and register
an application. Don't worry unless you submit it to the gallery no one will see it.
Run migrations
./manage.py migrate
Go back to your settings and add your `client_id`, `client_secret` and some scopes.
DEVIANTART_CLIENT_ID = '1234' # this should be just a number
DEVIANTART_CLIENT_SECRET = 'sha1 hash' # Press show on the deviantart site
DEVIANTART_SCOPE = ['browse', 'user'] # You can find more informations about the scopes on the deviantart site
Add the oauth2 urls to your **urls.py**
from deviantart import urls as deviantart_urls
urlpatterns += [
url(r'^deviantart/', include(deviantart_urls)),
]
Now open your browser at `deviantart/auth` [Click here if you run the default testserver](http://127.0.0.1:8000/deviantart/auth)
If you've done everything right your should be redirected to the deviantart site where you need to press **authorize**
## Attention
If you change your scope you need to reauth your app be open the auth link from above again
## Future plans for django-deviantart
* make it easier to use
* Useable django authbackend for this
* reuseable templates
* more examples
Metadata
Release files for django-deviantart 0.2
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 | Actions |
|---|---|---|---|---|
| django-deviantart-0.2.tar.gz | 8.4 kB | Without provenance | Details for django-deviantart-0.2.tar.gz |
Release files / django-deviantart-0.2.tar.gz
| Download URL | django-deviantart-0.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02a1ca815e3c46c48f55c011f745243973a83f53ceda0582e0f348baac6e041b
|
|
BLAKE2b-256 checksum How to use checksums |
b951ed214cf440778612a67682b55cef3d49c45ccbad30d28a48e9847f6fd88b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-deviantart 0.2
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.