[extensions-web/wip/api/v1] settings: allow 20MB upload



commit c6b2345b9fa59b3ebb9abb060b00daeb84e2d72c
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Sep 11 16:29:07 2022 +0400

    settings: allow 20MB upload

 sweettooth/settings.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 80d3187..038ff44 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -182,6 +182,8 @@ STATICFILES_DIRS = (
 
 STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
 
+DATA_UPLOAD_MAX_MEMORY_SIZE = int(os.getenv('EGO_MAX_UPLOAD', 20 * 1024 * 1024))
+
 ACCOUNT_ACTIVATION_DAYS = 5
 
 LOGIN_URL = '/accounts/login/'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]