hsdhillon / Soundcloud-Django

Django Module for Soundcloud (Soundcloud.com) API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/************************************/
/ Django Module to authenticate with 
/  Soundcloud oauth2 API
/  Contact: lucas@flipzu.com
/************************************/

- Register your app in http://developers.soundcloud.com/. Please use as "callback url" the following value:

http://yourdomain.com/sc_login/

- Add the following lines to your "settings.py" file:

    # add to INSTALLED_APPS
        '<yourapp>.soundcloud'
    # add to AUTHENTICATION_BACKENDS
        '<yourapp>.soundcloud.backend.ScBackend'
    # add AUTH_PROFILE_MODULE
        AUTH_PROFILE_MODULE = '<yourapp>.soundcloud.profile_sc'

    # add at the end of settings.py
    SC_API_HOST              = "api.soundcloud.com"
    SC_CONSUMER              = "<soundcloud_key>"
    SC_CONSUMER_SECRET       = "<soundcloud_secret>"
    SC_CALLBACK_HOST         = "http://yourdomain.com/

# (replace <yourapp> with your main app name, and <soundcloud_key> / <soundcloud_secret> with
#  your app key and app secret provided in http://developers.soundcloud.com/ )

- Add the following line to the patterns section in your "urls.py" file:
    
    (r'', include('<yourapp>.soundcloud.urls')),

# (replace <yourapp> with your main app name.


... and you're good to GO! :)

About

Django Module for Soundcloud (Soundcloud.com) API


Languages

Language:Python 100.0%