Compare commits

...

2 Commits

Author SHA1 Message Date
5bc92a5841 Default login url 2020-08-12 16:52:03 +02:00
d5de4e0440 Rendering of messages, ugly, but its there 2020-08-12 16:51:55 +02:00
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
""" """
import os import os
from django.urls import reverse_lazy
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 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' LOGIN_REDIRECT_URL = 'home'
LOGOUT_REDIRECT_URL = 'home' LOGOUT_REDIRECT_URL = 'home'
LOGIN_URL = reverse_lazy('login')
THUMBNAIL_ALIASES = { THUMBNAIL_ALIASES = {
'': { '': {
'thumbnail': {'size': (300, 300), 'crop': False}, 'thumbnail': {'size': (300, 300), 'crop': False},

View File

@ -46,6 +46,13 @@
</nav> </nav>
</section> </section>
<section class="LP-Main__Content"> <section class="LP-Main__Content">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li {% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% block maincontent %} {% block maincontent %}
{% endblock maincontent %} {% endblock maincontent %}
</section> </section>