From 449e9e41d1955a2370484c0047d97a8b4d058ff1 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 21 Aug 2018 11:28:16 +0200 Subject: [PATCH] allow larger uploads --- camp/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/camp/settings.py b/camp/settings.py index 6c222fa..1b655c2 100644 --- a/camp/settings.py +++ b/camp/settings.py @@ -148,6 +148,8 @@ IMAGE_PREFIX = 'http://studio.camp/images/' CONTACT_FROM_EMAIL = 'contact@studio.camp' CONTACT_TO_EMAIL = ['contact@studio.camp'] +DATA_UPLOAD_MAX_MEMORY_SIZE = 150 * 1024 * 1024 + try: from local_settings import * except: @@ -169,4 +171,4 @@ except NameError: secret.write(SECRET_KEY) secret.close() except IOError: - Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE) + raise Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE)