Error information:
RequestDataTooBig Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE
reason:
Django’s default upload size is 2.5m, and the uploaded file is too large.
Solution:
Add the following line in the file settings.py of django.
DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880 #default is 5M
Read More:
- [Solved] Django Access to the backend error: Invalid block tag on line 98: ‘trans‘, expected ‘elif , ‘else‘或‘ endif. Did you forget
- [Solved] Django backend error: Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay()
- cffi Security Report “c / _cffi_backend.oc / _cffi_backend.c: 15:17: error: ffi.h: No such file or directory” Problem
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- [Solved] Python Django error: error: (1146, “Table ‘mydb.django_session’ doesn’t exist”)
- [Solved] Django Error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
- [Solved] Django Configurate celery error: django.db.utils.DatabaseError
- Django PythonConsole error: Requested setting DEFAULT_INDEX_TABLESPACE
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- Django CSV file Error: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb5 in position 0: invalid start
- [Solved] from django.core.cache import cache Error
- python: File Processing and Input and Output
- Django Issues: TypeError: “Settings” object is irreversible
- [Solved] Django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- [Solved] Django Error: Attributeerror: ‘wsgirequest’ object has no attribute ‘is_ajax ‘
- [Solved] Python Project Error: django.core.exceptions.ImproperlyConfigured: WSGI application ‘WebTool.wsgi.application
- Django WSGI protocol application, based on wsgiref module DIY a web framework
- Django Error: binascii.Error: Incorrect padding [How to Solve]