Redirect authenticated users to index

This commit is contained in:
sonny 2020-05-23 12:08:19 +02:00
parent 2e857818da
commit 3ea359ff8a

View file

@ -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"