1
0
forked from erp-dev/erp
This commit is contained in:
2025-12-19 10:34:28 +08:00
parent 1a6ce32441
commit 545be7ff6b
7 changed files with 59924 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# Initialize environment variables
Env.read_env(str(BASE_DIR / '.env'))
# 允许一次请求携带更多表单字段,避免 admin 批量操作时报 TooManyFieldsSent
# Django 默认 DATA_UPLOAD_MAX_NUMBER_FIELDS=1000当一次 POST/GET 的字段(含重复 key过多会直接抛异常。
DATA_UPLOAD_MAX_NUMBER_FIELDS = env.int('DATA_UPLOAD_MAX_NUMBER_FIELDS', default=20000)
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/