diff --git a/breccia_mapper/settings.py b/breccia_mapper/settings.py index 7f5ba6d..a9f652e 100644 --- a/breccia_mapper/settings.py +++ b/breccia_mapper/settings.py @@ -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/ diff --git a/breccia_mapper/templates/registration/logged_out.html b/breccia_mapper/templates/registration/logged_out.html new file mode 100644 index 0000000..cbcfc61 --- /dev/null +++ b/breccia_mapper/templates/registration/logged_out.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +
+ You have logged out +
+{% endblock %} \ No newline at end of file diff --git a/breccia_mapper/templates/registration/login.html b/breccia_mapper/templates/registration/login.html new file mode 100644 index 0000000..9da2b5d --- /dev/null +++ b/breccia_mapper/templates/registration/login.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% load bootstrap4 %} + +{% block content %} +