debian: do not overwrite existing DATA_UPLOAD_MAX_MEMORY_SIZE (#69604)

for example for Passerelle, where DATA_UPLOAD_MAX_MEMORY_SIZE = 100 * 1024 * 1024
This commit is contained in:
Thomas NOËL 2022-11-22 14:23:19 +01:00 committed by Frédéric Péters
parent 92cdad5f8c
commit 8d3d8a7db1
1 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,8 @@ if 'authentic2' in INSTALLED_APPS:
MIDDLEWARE = MIDDLEWARE + ('hobo.agent.authentic2.middleware.ProvisionningMiddleware',)
# Allow big provisionning messages
DATA_UPLOAD_MAX_MEMORY_SIZE = 50_000_000
if 'DATA_UPLOAD_MAX_MEMORY_SIZE' not in globals():
DATA_UPLOAD_MAX_MEMORY_SIZE = 50_000_000
if PROJECT_NAME != 'wcs':
# multitenant adaptations