configure django-allauth
This commit is contained in:
parent
ac9d45782e
commit
8271c3a1c6
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@ import os
|
|||
import sys
|
||||
|
||||
from django.core.urlresolvers import reverse_lazy
|
||||
from django.contrib.messages import constants as messages
|
||||
|
||||
try:
|
||||
from . import secret
|
||||
|
@ -171,6 +172,13 @@ ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS = False
|
|||
ACCOUNT_HOME_URL = HOME_URL
|
||||
ACCOUNT_USER_DISPLAY = user_display
|
||||
|
||||
SOCIALACCOUNT_PROVIDERS = {
|
||||
'clipper': {
|
||||
'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT': True,
|
||||
'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL': messages.INFO,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
# Static / media contents
|
||||
|
||||
|
|
Loading…
Reference in a new issue