Browse Source

关闭报文大小限制

ignatz 4 years ago
parent
commit
0e23638eb9
1 changed files with 1 additions and 0 deletions
  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/