Merge 84fa1cf0f2 into e49e3ccba9
This commit is contained in:
commit
f8451b3b71
2 changed files with 3 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ Modify settings.py
|
|||
LOGOUT_URL='/your_url_extension/logout'
|
||||
LOGIN_REDIRECT_URL='/'
|
||||
LOGOUT_REDIRECT_URL='/'
|
||||
|
||||
TWYTHON_DJANGO_DEFAULT_EMAIL = 'test@example.com'
|
||||
|
||||
Need Twython Help?
|
||||
------------------
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ def thanks(request, redirect_url=settings.LOGIN_REDIRECT_URL):
|
|||
user = User.objects.get(username=authorized_tokens['screen_name'])
|
||||
except User.DoesNotExist:
|
||||
# We mock a creation here; no email, password is just the token, etc.
|
||||
user = User.objects.create_user(authorized_tokens['screen_name'], "fjdsfn@jfndjfn.com", authorized_tokens['oauth_token_secret'])
|
||||
user = User.objects.create_user(authorized_tokens['screen_name'], settings.TWYTHON_DJANGO_DEFAULT_EMAIL or "fjdsfn@jfndjfn.com", authorized_tokens['oauth_token_secret'])
|
||||
profile = TwitterProfile()
|
||||
profile.user = user
|
||||
profile.oauth_token = authorized_tokens['oauth_token']
|
||||
|
|
|
|||
Reference in a new issue