Fixed to work with Twython 3.0.0 or greater and cleanup
Added LICENSE updated README updated setup.py PEP8'd stuff
This commit is contained in:
parent
445f9bde8b
commit
30a57c7950
8 changed files with 181 additions and 205 deletions
|
|
@ -2,18 +2,17 @@ from django.conf.urls.defaults import *
|
|||
|
||||
# your_app = name of your root djang app.
|
||||
urlpatterns = patterns('twython_django_oauth.views',
|
||||
|
||||
# First leg of the authentication journey...
|
||||
url(r'^login/?$', "begin_auth", name="twitter_login"),
|
||||
# First leg of the authentication journey...
|
||||
url(r'^login/?$', "begin_auth", name="twitter_login"),
|
||||
|
||||
# Logout, if need be
|
||||
url(r'^logout/?$', "logout", name="twitter_logout"), # Calling logout and what not
|
||||
|
||||
# This is where they're redirected to after authorizing - we'll
|
||||
# further (silently) redirect them again here after storing tokens and such.
|
||||
url(r'^thanks/?$', "thanks", name="twitter_callback"),
|
||||
# Logout, if need be
|
||||
url(r'^logout/?$', "logout", name="twitter_logout"), # Calling logout and what not
|
||||
|
||||
# An example view using a Twython method with proper OAuth credentials. Clone
|
||||
# this view and url definition to get the rest of your desired pages/functionality.
|
||||
url(r'^user_timeline/?$', "user_timeline", name="twitter_timeline"),
|
||||
# This is where they're redirected to after authorizing - we'll
|
||||
# further (silently) redirect them again here after storing tokens and such.
|
||||
url(r'^thanks/?$', "thanks", name="twitter_callback"),
|
||||
|
||||
# An example view using a Twython method with proper OAuth credentials. Clone
|
||||
# this view and url definition to get the rest of your desired pages/functionality.
|
||||
url(r'^user_timeline/?$', "user_timeline", name="twitter_timeline"),
|
||||
)
|
||||
|
|
|
|||
Reference in a new issue