Initial commit; example Django application for using Twython OAuth with Twitter. Twython = Python Twitter API library/wrapper. Enjoy; a subproject of the mainline Twython effort.

This commit is contained in:
Ryan McGrath 2010-11-07 02:14:40 -05:00
commit fab3d7a216
7 changed files with 223 additions and 0 deletions

View file

@ -0,0 +1,12 @@
from django.db import models
from django.contrib.auth.models import User
class Profile(models.Model):
"""
An example Profile model that handles storing the oauth_token and
oauth_secret in relation to a user. Adapt this if you have a current
setup, there's really nothing special going on here.
"""
user = models.ForeignKey(User)
oauth_token = models.CharField(max_length = 200)
oauth_secret = models.CharField(max_length = 200)