Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


-- restructuredtext --


A Django application that lets you associate Twitter accounts with your User accounts.

Features include:

  • Uses django.contrib.auth.User
  • Lets Twitter users sign in before registering.
  • Optional auto-creation of Users from Twitter screen-names
  • Lets Users link and unlink Twitter accounts.

Quick start

  1. Get a Twitter OAuth Client from


  3. Add django_oauth_twitter to settings.INSTALLED_APPS.

  4. Add django_oauth_twitter.context_processors.twitter_userinfo to settings.TEMPLATE_CONTEXT_PROCESSORS.

  5. Add django_oauth_twitter.middleware.SessionMiddleware to settings.MIDDLEWARE_CLASSES after your AuthenticationMiddleware.

  6. Add the following to your

    from django_oauth_twitter.views import OAuthTwitter
    oauthtwitter = OAuthTwitter()
    urlpatterns += patterns('',
        (r'^twitter/', include(oauthtwitter.urls))
  7. Add a link to {% url twitter_signin %} from your settings.LOGIN_URL page. (See for some nice buttons.)

  8. Try it out!


Please submit all bugs and patches to:

Recent activity

Nothing to see here, move along.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.