Source

django-twitter-backend /

Filename Size Date modified Message
twitterauth
28 B
1.0 KB
1.2 KB
158 B
720 B

Django Twitter Backend

Django Twitter Backend is a Django app that provides a Django authentication backend to allow users of your site to authenticate against Twitter's OAuth API. Much of the code in this app comes from http://agileweb.wordpress.com/2009/04/28/step-by-step-guide-to-use-sign-in-with-twitter-with-django/

Requirements

The following libraries are required, a requirements.txt file is included and can be installed via pip:

$ pip install -r requirements.txt

Installation

  1. Install django-twitter-backend on your PYTHONPATH.
  2. Add twitterauth to your INSTALLED_APPS in settings.py.
  3. Add your Twitter API credentials to your settings.py in CONSUMER_KEY and CONSUMER_SECRET
  4. Add twitterauth.backend.twitteroauth.TwitterBackend to AUTHENTICATION_BACKENDS in your settings.py
  5. Set AUTH_PROFILE_MODULE to twitterauth.TwitterProfile in your settings.py
  6. Connect some URLs to the provided views in your urls.py (twitter_signin and twitter_return)