From e9b31903727af8e38c4e2f047b8f9e6c9aa9a38f Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sat, 26 Feb 2011 01:30:42 -0500 Subject: [PATCH] Fixing these incorrect references, big thanks to Brenden Mulligan for pointing them out. --- README.markdown | 4 ++-- twython_django_oauth/urls.py | 2 +- twython_django_oauth/views.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index dafce06..961f340 100644 --- a/README.markdown +++ b/README.markdown @@ -39,11 +39,11 @@ settings.py file. If you wish to use the example template, feel free to copy tha After you've done that, specify the following urlconf in your root urls.py: - (r'^your_url_extension/', include('your_app.django_twitter_oauth.urls')), + (r'^your_url_extension/', include('your_app.twython_django_oauth.urls')), If you're using this app bare-bones (i.e, just starting out), add the following to your settings.py: - AUTH_PROFILE_MODULE = 'django_twitter_oauth.Profile' + AUTH_PROFILE_MODULE = 'twython_django_oauth.Profile' (Obviously, if you've got your own custom User/Profile setup going, this should all be pretty self explanatory to integrate into your application. The OAuth handshake flow is well documented here, as well as how to use it diff --git a/twython_django_oauth/urls.py b/twython_django_oauth/urls.py index 965025a..ef17c21 100644 --- a/twython_django_oauth/urls.py +++ b/twython_django_oauth/urls.py @@ -1,7 +1,7 @@ from django.conf.urls.defaults import * # your_app = name of your root djang app. -urlpatterns = patterns('your_app.django_twitter_oauth.views', +urlpatterns = patterns('your_app.twython_django_oauth.views', # First leg of the authentication journey... (r'^login/?$', begin_auth), diff --git a/twython_django_oauth/views.py b/twython_django_oauth/views.py index c57632a..7b44d43 100644 --- a/twython_django_oauth/views.py +++ b/twython_django_oauth/views.py @@ -8,7 +8,7 @@ from twython import Twython # If you've got your own Profile setup, see the note in the models file # about adapting this to your own setup. -from your_app.twitter.models import Profile +from your_app.twython_django_oauth.models import Profile # Move these into your settings.py if you're feeling adventurous. CONSUMER_KEY = "YOUR CONSUMER KEY HERE"