feat: update medical training case and auth modules

This commit is contained in:
2026-06-03 17:34:47 +08:00
parent b4bb38b7be
commit fd0b3e1982
45 changed files with 1459 additions and 812 deletions
+7 -1
View File
@@ -10,7 +10,12 @@ SECRET_KEY = 'django-insecure-!-mtect5n-yyxkp2m=j(8dz_yi$b3w3ddo&w#i(@4kv-spdthy
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
"127.0.0.1",
"localhost",
"192.168.2.76",
"8.160.178.88"
]
INSTALLED_APPS = [
@@ -160,6 +165,7 @@ CACHES = {
SMS_CODE_EXPIRE = 300 # 验证码有效期(秒)
SMS_CODE_INTERVAL = 60 # 发送间隔(秒)
SMS_PROVIDER = os.getenv('SMS_PROVIDER', 'mock')
SMS_MOCK_CODE = os.getenv('SMS_MOCK_CODE', '123456') # mock 模式下固定验证码
ALIYUN_SMS_ACCESS_KEY_ID = os.getenv('ALIYUN_SMS_ACCESS_KEY_ID', '')
ALIYUN_SMS_ACCESS_KEY_SECRET = os.getenv('ALIYUN_SMS_ACCESS_KEY_SECRET', '')