Commit 387bc4dd authored by Laury Bueno's avatar Laury Bueno
Browse files

Upload request body size is now configurable by environment variable

parent aee47318
Pipeline #8079 passed with stage
in 22 seconds
......@@ -26,7 +26,7 @@ DJANGO_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages',
'dal',
'dal_select2',
# Admin
......@@ -170,6 +170,10 @@ USE_L10N = True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#use-tz
USE_TZ = True
# Request body maximum size (defaults to 50MB)
# See: https://docs.djangoproject.com/en/2.2/ref/settings/#data-upload-max-memory-size
DATA_UPLOAD_MAX_MEMORY_SIZE = env.int('DATA_UPLOAD_MAX_MEMORY_SIZE', default=52428800)
# TEMPLATE CONFIGURATION
# ------------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/dev/ref/settings/#templates
......@@ -425,6 +429,6 @@ TIMTEC_THEME = env.str('DJANGO_TIMTEC_THEME', default='courses_legacy')
TIMTEC_THEMES_COMPAT = env.bool('DJANGO_TIMTEC_THEMES_COMPAT', default=False)
if TIMTEC_THEMES_COMPAT:
# FIXME remove this ACCOUNT_LOGOUT_ON_GET, see more here:
# FIXME remove this ACCOUNT_LOGOUT_ON_GET, see more here:
# https://django-allauth.readthedocs.io/en/latest/views.html?highlight=login%20redirect#logout-account-logout
ACCOUNT_LOGOUT_ON_GET = True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment