Skip to content

Commit e7427b6

Browse files
committed
Added notes on settings.py.
1 parent ec22e40 commit e7427b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,7 @@ and code here might need to be updated if you are using Python 2.6+.
291291
return HttpResponseRedirect('/')
292292

293293

294+
### `settings.py`
295+
296+
* You'll likely want to set `LOGIN_URL` to `/login/` so that users are properly redirected to your Twitter login handler when you use `@login_required` in other parts of your Django app.
297+
* You can also set `AUTH_PROFILE_MODULE = 'mytwitterapp.Profile'` so that you can easily access the Twitter OAuth token/secret for that user using the `User.get_profile()` method in Django.

0 commit comments

Comments
 (0)