Fixing these incorrect references, big thanks to Brenden Mulligan for pointing them out.

This commit is contained in:
Ryan McGrath 2011-02-26 01:30:42 -05:00
parent fab3d7a216
commit e9b3190372
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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),

View file

@ -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"