Fixing these incorrect references, big thanks to Brenden Mulligan for pointing them out.
This commit is contained in:
parent
fab3d7a216
commit
e9b3190372
3 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
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:
|
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
|
(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
|
to integrate into your application. The OAuth handshake flow is well documented here, as well as how to use it
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
|
||||||
# your_app = name of your root djang app.
|
# 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...
|
# First leg of the authentication journey...
|
||||||
(r'^login/?$', begin_auth),
|
(r'^login/?$', begin_auth),
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ from twython import Twython
|
||||||
|
|
||||||
# If you've got your own Profile setup, see the note in the models file
|
# If you've got your own Profile setup, see the note in the models file
|
||||||
# about adapting this to your own setup.
|
# 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.
|
# Move these into your settings.py if you're feeling adventurous.
|
||||||
CONSUMER_KEY = "YOUR CONSUMER KEY HERE"
|
CONSUMER_KEY = "YOUR CONSUMER KEY HERE"
|
||||||
|
|
|
||||||
Reference in a new issue