From 50ac5263b7c6df3af55fe8ea9a631c4d8404c2f0 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sun, 13 Nov 2011 14:48:46 +0000 Subject: [PATCH] added url names for easier external lookup --- twython_django_oauth/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twython_django_oauth/urls.py b/twython_django_oauth/urls.py index d331601..a017d81 100644 --- a/twython_django_oauth/urls.py +++ b/twython_django_oauth/urls.py @@ -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"), + (r'^login/?$', "begin_auth", name="twitter_login"), # Logout, if need be - (r'^logout/?$', "logout"), # Calling logout and what not + (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"), + (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"), + (r'^user_timeline/?$', "user_timeline", name="twitter_timeline"), )