[Django]-RequestDataTooBig Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE

89👍

Just add Following line in your settings.py

DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880 #whatever size you want to gave i have given 5MB

By default DATA_UPLOAD_MAX_MEMORY_SIZE is 2.5MB

You can see by default global settings values
from django.conf.global_settings

3👍

This is django induced check to avoid any Suspicious activity.

https://docs.djangoproject.com/en/dev/ref/settings/#data-upload-max-memory-size

Leave a comment