2
Yes, Django error logs.
[ERROR] [2014-10-23 12:46:06,073] [base 6808 140062533326784] [Invalid HTTP_HOST header: 'whatver.host'.You may need to add u'whatever_host' to ALLOWED_HOSTS.]
Here’s an example log config. you should be logging Djanogo errors if you hope to debug anything.
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'error_file': {
'level': 'ERROR',
'filename': os.path.join(LOG_PATH, 'error.log'),
'class':'logging.handlers.RotatingFileHandler',
'maxBytes': 1 * 1024 * 1024,
'backupCount': 2
}
},
'loggers': {
'django': {
'handlers': ['error_file'],
'level': 'ERROR',
'propagate': True
}
}
}
Source:stackexchange.com