Add auth pages

This commit is contained in:
James Graham
2020-01-30 14:28:58 +00:00
parent 61a123f508
commit 141759479b
3 changed files with 33 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
import collections
import pathlib
from django.urls import reverse_lazy
from decouple import config, Csv
import dj_database_url
@@ -150,6 +152,12 @@ AUTH_PASSWORD_VALIDATORS = [
AUTH_USER_MODEL = 'people.User'
# Login flow
LOGIN_URL = reverse_lazy('login')
LOGIN_REDIRECT_URL = reverse_lazy('index')
# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/