瀏覽代碼

关闭报文大小限制

ignatz 4 年之前
父節點
當前提交
0e23638eb9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      st_cloud/settings.py

+ 1 - 0
st_cloud/settings.py

@@ -15,6 +15,7 @@ from pathlib import Path
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
 BASE_DIR = Path(__file__).resolve().parent.parent
 MEDIA_ROOT = BASE_DIR / 'upload/'
+DATA_UPLOAD_MAX_MEMORY_SIZE = None
 
 # Quick-start development settings - unsuitable for production
 # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/