From fbff54f3a86fc8c2fbf235b2bc77a2340efc6c13 Mon Sep 17 00:00:00 2001 From: jmath1 Date: Thu, 11 Jun 2020 05:50:34 -0400 Subject: [PATCH] Update logger configuration for django and OAUTH@_PROVIDER_APPLICATION_MODEL --- settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/settings.py b/settings.py index 804c158b2..5ee44c6c5 100644 --- a/settings.py +++ b/settings.py @@ -190,8 +190,8 @@ LOGGING = { # }, }, 'loggers': { - 'django.request': { - 'handlers': ['console', 'log_file'], + 'django': { + 'handlers': ['console', 'mail_admins'], 'level': 'ERROR', 'propagate': True, }, @@ -297,6 +297,8 @@ LOG_TO_STREAM = False # = Django Apps = # =============== +OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application' + INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes',