Skip to main content

Deviantart API (OAuth2) for your django project

Project description

# django-deviantart
Oauth2 Django App for Deviantart

## Installation

pip install django-deviantart

add deviantart to your settings.


Go to [the deviantart developer program]( and register
an application. Don't worry unless you submit it to the gallery no one will see it.

Run migrations

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

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](
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

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

django-deviantart-0.2.tar.gz (8.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page