> https://docs.djangoproject.com/en/dev/ref/settings/ 注:当重写覆盖默认 settings 配置时,尤其是默认值是非空list或dict,需要明确深入了解. - mysite/settings.py ## DATA_UPLOAD_MAX_MEMORY_SIZE 默认值为 2621440,如2.5MB. ```python DATA_UPLOAD_MAX_MEMORY_SIZE = 10502880 #10M ``` https://docs.djangoproject.com/en/dev/ref/settings/注:当重写覆盖默认 settings 配置时,尤其是默认值是非空list或dict,需要明确深入了解.mysite/settings.pyDATA_UPLOAD_MAX_MEMORY_SIZE默认值为 2621440,如2.5MB.DATA_UPLOAD_MAX_MEMORY_SIZE = 10502880 #10M Last modification:December 19, 2022 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate