#122: Improve documentation and conf tools (#126)

suite de #122 en suivant les conventions de nommage.

Co-authored-by: Christophe Siraut <d@tobald.eu.org>
Reviewed-on: #126
Co-authored-by: Chris Tactic <chris@tacticasbl.be>
Co-committed-by: Chris Tactic <chris@tacticasbl.be>
This commit is contained in:
2023-11-08 18:40:00 +01:00
committed by Thomas Kairos
parent fd4c765dc4
commit 61e6732b19
6 changed files with 65 additions and 33 deletions

View File

@ -7,6 +7,7 @@ try:
except ImportError:
pass
DEBUG = True
LOCALE_PATHS = ["aircox/locale", "aircox_streamer/locale"]
@ -15,7 +16,7 @@ LOGGING = {
"disable_existing_loggers": False,
"formatters": {
"timestamp": {
"format": "{asctime} {levelname} {message}",
"format": "{asctime} {module} {levelname} {message}",
"style": "{",
},
},
@ -26,6 +27,10 @@ LOGGING = {
},
},
"loggers": {
"root": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
},
"aircox": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "DEBUG"),
@ -40,3 +45,9 @@ LOGGING = {
},
},
}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
}
}

View File

@ -10,6 +10,7 @@ For Django settings see:
https://docs.djangoproject.com/en/3.1/topics/settings/
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from django.utils import timezone
from zoneinfo import ZoneInfo
from .prod import *