Merge pull request 'Добавил логирование' (#16) from fix_test into main
Some checks failed
Auto-update README / update-readme (push) Has been cancelled

Reviewed-on: #16
This commit is contained in:
Николай Сердюк 2026-06-19 18:14:12 +03:00
commit c247fe207e

View File

@ -285,6 +285,49 @@ CKEDITOR_5_CONFIGS = {
} }
} }
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}',
'style': '{',
},
'simple': {
'format': '{levelname} {message}',
'style': '{',
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'root': {
'handlers': ['console'],
'level': 'INFO',
},
'loggers': {
'django': {
'handlers': ['console'],
'level': 'INFO',
'propagate': False,
},
'django.request': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
},
'django.db.backends': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
},
},
}
LOGIN_REDIRECT_URL = 'profile' LOGIN_REDIRECT_URL = 'profile'
LOGOUT_REDIRECT_URL = 'home' LOGOUT_REDIRECT_URL = 'home'
LOGIN_URL = 'login' LOGIN_URL = 'login'