mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
Add auth pages
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user