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 %}>{{ day.date | date:"l j" }} {% if day.events %} - {% if resume %} + {% if resume == 1 %}