https://docs.djangoproject.com/en/dev/ref/settings/

注:当重写覆盖默认 settings 配置时,尤其是默认值是非空list或dict,需要明确深入了解.

  • mysite/settings.py

DATA_UPLOAD_MAX_MEMORY_SIZE

默认值为 2621440,如2.5MB.

DATA_UPLOAD_MAX_MEMORY_SIZE = 10502880 #10M
Last modification:December 19th, 2022 at 10:20 am