From d97d3f6ae08dcd0d76eada5ca5fc3c4481e4f8a9 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 3 Mar 2021 12:00:45 +0100 Subject: [PATCH] settings for django-allauth added --- eva/settings.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/eva/settings.py b/eva/settings.py index c2de6d1..06d5ab4 100644 --- a/eva/settings.py +++ b/eva/settings.py @@ -42,6 +42,11 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.sites', + 'allauth', + 'allauth.account', + 'allauth.socialaccount', + 'allauth.socialaccount.providers.nextcloud', 'multiselectfield', 'formtools', ] @@ -125,3 +130,17 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ 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'