Skip to content

Commit

Permalink
feat: Increase DATA_UPLOAD_MAX_MEMORY_SIZE to 5MB (2.5MB default)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 2, 2024
1 parent 4061cee commit 01a93bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
MEDIA_ROOT = os.getenv("MEDIA_ROOT", "/data/media/" if production else BASE_DIR / "media/")
MEDIA_URL = "media/"

# https://docs.djangoproject.com/en/4.2/ref/settings/#data-upload-max-memory-size
DATA_UPLOAD_MAX_MEMORY_SIZE = 52428800 # 5 MB

if production:
CACHES = {
"default": {
Expand Down

0 comments on commit 01a93bf

Please sign in to comment.