1.本地测试需要修改hosts文件:C:\Windows\System32\drivers\etc\hosts目录
hosts文件
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 zouni.vip 127.0.0.1 student.zouni.vip
2.代码中设置: 修改蓝图 subdomain 为指定的子域名
subdomain
bp = Blueprint('cms', __name__, subdomain='cms')
3.设置 config 配置 SERVER_NAME=主域名
config
SERVER_NAME=主域名
最后更新于4年前