diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py
index 1c51897..7a6ebe0 100644
--- a/src/agenda_culturel/settings/base.py
+++ b/src/agenda_culturel/settings/base.py
@@ -253,4 +253,26 @@ ROBOTS_USE_SITEMAP = False
if DEBUG:
import socket
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
- INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + ["127.0.0.1", "10.0.2.2"]
\ No newline at end of file
+ INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + ["127.0.0.1", "10.0.2.2"]
+
+# logging
+
+level_debug = "DEBUG" if DEBUG else "ERROR"
+LOGGING = {
+ "version": 1,
+ "disable_existing_loggers": False,
+ "handlers": {
+ "file": {
+ "level": level_debug,
+ "class": "logging.FileHandler",
+ "filename": "backend.log",
+ },
+ },
+ "loggers": {
+ "django": {
+ "handlers": ["file"],
+ "level": level_debug,
+ "propagate": True,
+ },
+ },
+}
diff --git a/src/agenda_culturel/templates/agenda_culturel/day-inc.html b/src/agenda_culturel/templates/agenda_culturel/day-inc.html
index 873ea0b..4fccf83 100644
--- a/src/agenda_culturel/templates/agenda_culturel/day-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/day-inc.html
@@ -20,10 +20,10 @@
{% endif %}
- <{% if headers %}{{ headers }}{% else %}h2{% endif %}>{{ day.date | date:"l j" }}{% if headers %}{{ headers }}{% else %}h2{% endif %}>
+ <{% if headers != "" %}{{ headers }}{% else %}h2{% endif %}>{{ day.date | date:"l j" }}{% if headers != "" %}{{ headers }}{% else %}h2{% endif %}>
{% if day.events %}
- {% if resume %}
+ {% if resume == 1 %}
{% for category, events in day.events_by_category_ordered %}
- {{ events.0.category | circle_cat }}
diff --git a/src/agenda_culturel/templates/agenda_culturel/event-location-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-location-inc.html
index c307b19..7f51fab 100644
--- a/src/agenda_culturel/templates/agenda_culturel/event-location-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/event-location-inc.html
@@ -1,9 +1,9 @@
{% if event.exact_location %}
{% if nolink %}
- {{ event.exact_location.name }}{% if not nocity %}, {{ event.exact_location.city }}{% endif %}
+ {{ event.exact_location.name }}, {{ event.exact_location.city }}
{% else %}
- {{ event.exact_location.name }}{% if not nocity %}, {{ event.exact_location.city }}{% endif %}
+ {{ event.exact_location.name }}, {{ event.exact_location.city }}
{% endif %}
{% else %}
{% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html
index a436e12..573c32f 100644
--- a/src/agenda_culturel/templates/agenda_culturel/filter-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/filter-inc.html
@@ -2,7 +2,7 @@
{% load tag_extra %}
{% load utils_extra %}
-{% if not noarticle %}
+{% if noarticle == 0 %}
{% endif %}
@@ -23,9 +23,6 @@
{% for s in filter.get_status_names %}
{{ s }}
{% endfor %}
- {% for c in filter.get_cities %}
- {{ c }}
- {% endfor %}
{{ filter.get_recurrence_filtering }}
{{ filter.get_position_radius }}
{% else %}
@@ -70,6 +67,6 @@
-{% if not noarticle %}
+{% if noarticle == 0 %}
{% endif %}
diff --git a/src/agenda_culturel/templates/agenda_culturel/forms/category-checkbox.html b/src/agenda_culturel/templates/agenda_culturel/forms/category-checkbox.html
index 08c33fb..888ac5f 100644
--- a/src/agenda_culturel/templates/agenda_culturel/forms/category-checkbox.html
+++ b/src/agenda_culturel/templates/agenda_culturel/forms/category-checkbox.html
@@ -6,7 +6,7 @@
{% with container_id=widget.attrs.id %}
-