[extensions-web/workaround/django-selinux: 1/2] settings: allow 20MB upload




commit ea7d15e6a8b87bf08518786a345ffd9556aeecbf
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 947350d..3042019 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -159,6 +159,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]