Skip to content
Snippets Groups Projects
Commit 012bf6a3 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add social auth conf to production settings

Former-commit-id: ac63332794160a52c928b7551a24217dd519d9b9
parent e7f056d2
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,13 @@ INSTALLED_APPS = [
'ippidb',
'formtools',
'debug_toolbar',
'mod_wsgi.server',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.github',
'allauth.socialaccount.providers.orcid',
'mod_wsgi.server'
]
......@@ -140,3 +147,15 @@ GRAPH_MODELS = {
'all_applications': True,
'group_models': True,
}
# myproject/settings.py
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
SITE_ID = 1
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment