I cannot enable logging in server console

78 views
Skip to first unread message

Ladislav P

unread,
Sep 11, 2013, 10:25:11 AM9/11/13
to django...@googlegroups.com
Hi,

I am developing in pycharm, django correctly was writing every SQL command in console, but from some time it stopped to do so. I have checked nearly everything, can somebody help to troubleshoot this? This feature is quite critical for developing ..

DEBUG = True
TEMPLATE_DEBUG = DEBUG

I disabled django debug toolbar. I do not know if this is related:

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,
        },
    }
}

Germán Larraín

unread,
Sep 12, 2013, 8:18:38 AM9/12/13
to django...@googlegroups.com
Perhaps it's a pycharm issue...

Ladislav P

unread,
Sep 13, 2013, 9:17:16 AM9/13/13
to django...@googlegroups.com
It was not. I was completely missing django.db.backends directive in LOGGING.
Reply all
Reply to author
Forward
0 new messages