T-002: 建立基础配置与环境样例

This commit is contained in:
ila
2026-07-06 17:46:15 +08:00
parent feb662da67
commit f40153355f
8 changed files with 53 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
# Skelet 环境变量示例
# 复制为 .env 并填入真实值;.env 已被 .gitignore 忽略,不会提交
# Django 密钥(生产环境必须替换为随机字符串)
# 生成方式: python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"
SECRET_KEY=replace-me
# 调试模式(开发 True,生产 False)
DEBUG=True
# 允许访问的主机名,逗号分隔
# 开发: localhost,127.0.0.1
# 生产: yourdomain.com,www.yourdomain.com
ALLOWED_HOSTS=localhost,127.0.0.1
# Wagtail 管理后台基础 URL(用于邮件通知等)
# 开发: http://localhost:8000
# 生产: https://yourdomain.com
WAGTAILADMIN_BASE_URL=http://localhost:8000