Make logging work

This commit is contained in:
2023-01-05 22:14:51 +01:00
parent d00bb1cd06
commit 9c56ed4ce8
2 changed files with 10 additions and 3 deletions

View File

@ -133,8 +133,15 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {"console": {"class": "logging.StreamHandler"}},
"root": {"handlers": ["console"], "level": "WARNING"},
"handlers": {
"console": {"class": "logging.StreamHandler"},
},
"loggers": {
"django": {
"handlers": ["console"],
"level": "INFO",
},
},
}
CSRF_TRUSTED_ORIGINS = []