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},