From 43a2d731e70d89211ce2029b17ff6886e83236e7 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Thu, 10 Aug 2023 16:45:00 -0700 Subject: [PATCH] Set env var DATA_UPLOAD_MAX_NUMBER_FIELDS * This allows us to send more data in a post request Signed-off-by: Jono Yang --- purldb/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/purldb/settings.py b/purldb/settings.py index e12b5dde..891451e8 100644 --- a/purldb/settings.py +++ b/purldb/settings.py @@ -93,6 +93,12 @@ "SECURE_PROXY_SSL_HEADER", default=("HTTP_X_FORWARDED_PROTO", "https") ) +# API + +DATA_UPLOAD_MAX_NUMBER_FIELDS = env.int( + "DATA_UPLOAD_MAX_NUMBER_FIELDS", default=2048 +) + # Database DATABASES = {