Jul-26-2018, 02:24 PM
Hi Experts,
I am facing a strange issue in my application built on Django 2.0.6+MySql 5.7+Python3.6.
I am trying to merge two products with same name so that I can remove duplicacy.
But when I click on Preview button, page is refreshed and no any trace in logs.
In my settings.py DEBUG is already True and following logger setting I am using-
I am facing a strange issue in my application built on Django 2.0.6+MySql 5.7+Python3.6.
I am trying to merge two products with same name so that I can remove duplicacy.
But when I click on Preview button, page is refreshed and no any trace in logs.
In my settings.py DEBUG is already True and following logger setting I am using-
import logging
# send server errors to admin
ADMINS = (('admin', '[email protected]'),)
MANAGERS = ADMINS
# Logging configuration for production
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(asctime)s [%(levelname)s] %(filename)s:%(lineno)s %(funcName)s() : %(message)s'
},
'simple': {
'format': '%(asctime)s [%(levelname)s] : %(message)s'
},
},
'handlers': {
'file': {
'level': 'ERROR',
'class': 'logging.FileHandler',
'filename': 'error.log',
'formatter': 'verbose'
},
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
'formatter': 'simple'
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'ERROR',
'propagate': True,
},
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
},
}Am I missing anything here because I am not seeing any info,warning or error in logs?
