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
- [Django]-Django model CharField: max_length does not work?
- [Django]-How to set ForeignKey in CreateView?
- [Django]-How to use "OR" using Django's model filter system?
Source:stackexchange.com