Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
base-django-courses
Commits
387bc4dd
Commit
387bc4dd
authored
5 years ago
by
Laury Bueno
Browse files
Options
Download
Email Patches
Plain Diff
Upload request body size is now configurable by environment variable
parent
aee47318
Pipeline
#8079
passed with stage
in 22 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
config/settings/base.py
config/settings/base.py
+6
-2
No files found.
config/settings/base.py
View file @
387bc4dd
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment