T-002: 建立基础配置与环境样例
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user