Home > Soundcloud-Django

Soundcloud-Django

Soundcloud-Django is a project mainly written in ..., it's free.

Django Module for Soundcloud (Soundcloud.com) API

/****/ / Django Module to authenticate with / Soundcloud oauth2 API / Contact: [email protected] /****/

  • 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 = "" SC_CONSUMER_SECRET = "" SC_CALLBACK_HOST = "http://yourdomain.com/

(replace with your main app name, and / 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('.soundcloud.urls')),

(replace with your main app name.

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

Previous:hammurabi