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=主域名
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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=主域名