Tweeting from a Django Application

It's easy to get your application to start sending twitter status updates in django.

  1. Create a twitter account
  2. Create a twitter "application' and get your keys
  3. Click on "settings" and set the access to read and write
  4. easy_install python-twitter
  5. Use this template

Whenever you save a "Post" object, the def send_tweet method will attempt to tweet a message containing the name of the object as well as the absolute url.

Tagged as django , tweet twitter
Written by Andrew Konkol on August 17th, 2011


Log in with Twitter, Google, Facebook, LinkedIn to leave a comment.