This commit is contained in:
chenyang
2022-07-10 06:22:34 +08:00
parent bd3fae8bb7
commit 2c41394b67
3 changed files with 34 additions and 6 deletions
+19
View File
@@ -158,3 +158,22 @@ AUTHENTICATION_BACKENDS = [
# session 设置
SESSION_COOKIE_AGE = 60 * 30 # 设置过期时间10分钟,默认为两周
SESSION_SAVE_EVERY_REQUEST = True
# 日志
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django.db.backends': {
'handlers': ['console'],
'propagate': True,
'level': 'DEBUG',
},
}
}