D
D
Dmitry2016-12-18 16:02:48
Django
Dmitry, 2016-12-18 16:02:48

Why did the Django dev server stop printing http requests to the console?

I use Django 1.10, when the project was launched by the team python manage.py runserver, http requests were no longer logged into the console, where to "dig"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2016-12-19
@topwebmaster

If logging settings are overridden , check if logging to the console is indeed configured.

LOGGING = {
    ...,
    
    'handlers': {
        'console': {
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console'],
            'level': 'INFO',
        },
    },
}

Or you can just not disable default loggers:
LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    ...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question