Compare commits
2 Commits
8f340f6567
...
5bc92a5841
Author | SHA1 | Date | |
---|---|---|---|
5bc92a5841 | |||
d5de4e0440 |
@ -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},
|
||||
|
@ -46,6 +46,13 @@
|
||||
</nav>
|
||||
</section>
|
||||
<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 %}
|
||||
{% endblock maincontent %}
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user