Congratulation, version 1.5 of Django Web Framework is now have release status!
In case you have DeprecationWarning:
Update you LOGGING settings for something like that:
In case you have DeprecationWarning:
DeprecationWarning: You have no filters defined on the 'mail_admins' logging handler: adding implicit debug-false-only filter
Update you LOGGING settings for something like that:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
No comments:
Post a Comment