From e91d0467a37920835fd0d46e1c7de1ed6c1e30dc Mon Sep 17 00:00:00 2001 From: Alessio Del Conte Date: Thu, 5 Dec 2024 12:14:09 +0100 Subject: [PATCH] Modify settings --- server/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/settings.py b/server/settings.py index 09a342c..b15fbac 100644 --- a/server/settings.py +++ b/server/settings.py @@ -43,6 +43,8 @@ def load_env(environ): PARAMS_VALUES_MAX_LENGTH = env.int('PARAMS_VALUES_MAX_LENGTH', 5000) # Maximum number of items for a paginated response MAX_PAGE_SIZE = env.int('MAX_PAGE_SIZE', 100) +# Maximum number of fields for a request +DATA_UPLOAD_MAX_NUMBER_FIELDS = 102400 CORS_ORIGIN_ALLOW_ALL = env.bool('CORS_ORIGIN_ALLOW_ALL', default=True) @@ -222,12 +224,12 @@ def load_env(environ): 'loggers': { 'drmaatic_lib': { 'handlers': ['file', 'console'], - 'level': 'DEBUG' if DEBUG else 'INFO', + 'level': 'DEBUG' if DEBUG else 'WARNING', 'propagate': True, }, 'drmaatic': { 'handlers': ['file', 'console'], - 'level': 'DEBUG' if DEBUG else 'INFO', + 'level': 'DEBUG' if DEBUG else 'WARNING', 'propagate': True, }, 'django': {