update:限制管理员上传,最长天数配置

This commit is contained in:
lan
2022-12-14 09:55:04 +08:00
parent 47f1c9b74b
commit 6230a62dee
3 changed files with 13 additions and 9 deletions
+2
View File
@@ -17,6 +17,8 @@ DATA_ROOT = './data/' + config('DATA_ROOT', cast=str, default=f"static")
STATIC_URL = config('STATIC_URL', cast=str, default="/static")
# 开启上传
ENABLE_UPLOAD = config('ENABLE_UPLOAD', cast=bool, default=False)
# 最长天数
MAX_DAYS = config('MAX_DAYS', cast=int, default=7)
# 错误次数
ERROR_COUNT = config('ERROR_COUNT', cast=int, default=5)
# 错误限制分钟数