WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

settings for django-allauth added

This commit is contained in:
Benni Bärmann 2021-03-03 12:00:45 +01:00
parent f194ef5f23
commit d97d3f6ae0
1 changed files with 19 additions and 0 deletions

View File

@ -42,6 +42,11 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.nextcloud',
'multiselectfield', 'multiselectfield',
'formtools', 'formtools',
] ]
@ -125,3 +130,17 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/ # https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
# settings needed for allauth
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
SITE_ID = 1
ACCOUNT_EMAIL_VERIFICATION = 'none'
LOGIN_REDIRECT_URL = 'home'