From 3ea359ff8ade1b8c61ddc678e8203229894589e1 Mon Sep 17 00:00:00 2001 From: sonny Date: Sat, 23 May 2020 12:08:19 +0200 Subject: [PATCH] Redirect authenticated users to index --- src/newsreader/conf/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newsreader/conf/base.py b/src/newsreader/conf/base.py index 6bc2840..ee5a296 100644 --- a/src/newsreader/conf/base.py +++ b/src/newsreader/conf/base.py @@ -172,6 +172,8 @@ AUTH_PASSWORD_VALIDATORS = [ # Authentication user model AUTH_USER_MODEL = "accounts.User" +LOGIN_REDIRECT_URL = "/" + # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/ LANGUAGE_CODE = "en-us"