子域名

1.本地测试需要修改hosts文件C:\Windows\System32\drivers\etc\hosts目录

127.0.0.1	zouni.vip
127.0.0.1	student.zouni.vip

2.代码中设置: 修改蓝图 subdomain 为指定的子域名

bp = Blueprint('cms', __name__,  subdomain='cms')

3.设置 config 配置 SERVER_NAME=主域名

最后更新于

这有帮助吗?