fixed the url names, and the logout function that was recursively calling itself for shits and giggles.

This commit is contained in:
Andrew Cassidy 2011-11-13 15:16:16 +00:00
parent 50ac5263b7
commit 278d5c3db0
3 changed files with 9 additions and 8 deletions

View file

@ -4,16 +4,16 @@ from django.conf.urls.defaults import *
urlpatterns = patterns('twython_django_oauth.views',
# First leg of the authentication journey...
(r'^login/?$', "begin_auth", name="twitter_login"),
url(r'^login/?$', "begin_auth", name="twitter_login"),
# Logout, if need be
(r'^logout/?$', "logout", name="twitter_logout"), # Calling logout and what not
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.
(r'^thanks/?$', "thanks", name="twitter_callback"),
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.
(r'^user_timeline/?$', "user_timeline", name="twitter_timeline"),
url(r'^user_timeline/?$', "user_timeline", name="twitter_timeline"),
)