Profile

User profile and story timeline

user-img
nyg

若想把角色写入数据库,可使用shell会话:(venv)$pythonmanage.pyshell>>>Role.insert_roles()>>>Role.query.all()
管理员由保存在设置变量FLASKY_ADMIN中的电子邮件地址识别,只要这个电子邮件地址出现在注册请求中,就会被赋予正确的角色。

回复