From 5bc92a584177075161302b71320479bfec5f9f0d Mon Sep 17 00:00:00 2001 From: reverend Date: Wed, 12 Aug 2020 16:52:03 +0200 Subject: [PATCH] Default login url --- lostplaces/lostplaces/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lostplaces/lostplaces/settings.py b/lostplaces/lostplaces/settings.py index 1bdf660..3051d7f 100644 --- a/lostplaces/lostplaces/settings.py +++ b/lostplaces/lostplaces/settings.py @@ -14,6 +14,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os +from django.urls import reverse_lazy # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -138,6 +139,8 @@ AUTH_USER_MODEL = 'lostplaces_app.Explorer' LOGIN_REDIRECT_URL = 'home' LOGOUT_REDIRECT_URL = 'home' +LOGIN_URL = reverse_lazy('login') + THUMBNAIL_ALIASES = { '': { 'thumbnail': {'size': (300, 300), 'crop': False},