mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
only load channels app if DEBUG is enabled; its only purpose is to monkey-patch the runserver command.
This commit is contained in:
parent
43c729568b
commit
3d0a52c25f
@ -102,10 +102,11 @@ INSTALLED_APPS = [
|
|||||||
|
|
||||||
"django_q",
|
"django_q",
|
||||||
|
|
||||||
"channels",
|
|
||||||
|
|
||||||
] + env_apps
|
] + env_apps
|
||||||
|
|
||||||
|
if DEBUG:
|
||||||
|
INSTALLED_APPS.append("channels")
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||||
'rest_framework.authentication.BasicAuthentication',
|
'rest_framework.authentication.BasicAuthentication',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user