From 778c4cde726809941c604dff18112185939eda9d Mon Sep 17 00:00:00 2001 From: Robin Champenois Date: Sat, 6 Feb 2021 18:55:52 +0100 Subject: [PATCH] Remarques Tom --- avisstage/migrations/0004_allauth_to_authens.py | 2 +- experiENS/settings_base.py | 6 ++---- requirements.txt | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/avisstage/migrations/0004_allauth_to_authens.py b/avisstage/migrations/0004_allauth_to_authens.py index 3998752..9de7655 100644 --- a/avisstage/migrations/0004_allauth_to_authens.py +++ b/avisstage/migrations/0004_allauth_to_authens.py @@ -47,7 +47,7 @@ def forwards(apps, schema_editor): ) is_ens_mail = lambda mail: ( - mail is not None and (mail.endswith(".ens.fr") or mail.endswith(".ens.psl.eu"))) + mail is not None and (mail.endswith("ens.fr") or mail.endswith("ens.psl.eu"))) new_conns = [] new_mails = [] diff --git a/experiENS/settings_base.py b/experiENS/settings_base.py index d03aec0..8a2ed36 100644 --- a/experiENS/settings_base.py +++ b/experiENS/settings_base.py @@ -38,8 +38,6 @@ INSTALLED_APPS = [ #'allauth', # Uncomment that part when you #'allauth.account', # apply migration #'allauth.socialaccount', # Allauth -> AuthENS - - 'widget_tweaks', 'simple_email_confirmation', 'authens', @@ -124,8 +122,8 @@ AUTHENS_USE_OLDCAS = False LOGIN_URL = reverse_lazy('authens:login') LOGOUT_URL = reverse_lazy('authens:logout') -LOGIN_REDIRECT_URL = "/perso/"#reverse_lazy('avisstage:perso') -LOGOUT_REDIRECT_URL = "/" +LOGIN_REDIRECT_URL = reverse_lazy('avisstage:perso') +LOGOUT_REDIRECT_URL = reverse_lazy('avisstage:index') LOGGING = { 'version': 1, diff --git a/requirements.txt b/requirements.txt index ce2f6a3..16e58ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,5 +8,4 @@ django-tastypie==0.14.* lxml==4.6.* django-elasticsearch-dsl==7.1.* authens -gdal django-simple-email-confirmation==0.*