Default login url

This commit is contained in:
reverend 2020-08-12 16:52:03 +02:00
parent d5de4e0440
commit 5bc92a5841

View File

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