From 3d0a52c25f2811f07b8987f43ee5b7cfb6c423a6 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sun, 14 Feb 2021 12:50:30 +0100 Subject: [PATCH] only load channels app if DEBUG is enabled; its only purpose is to monkey-patch the runserver command. --- src/paperless/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 59133dd45..8d14262d1 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -102,10 +102,11 @@ INSTALLED_APPS = [ "django_q", - "channels", - ] + env_apps +if DEBUG: + INSTALLED_APPS.append("channels") + REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework.authentication.BasicAuthentication',