[Flask]-自定义Flask-用户登录 [英] [Flask]-Customising Flask-user login

查看:51
本文介绍了[Flask]-自定义Flask-用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一直在为用户管理系统开发Flask-user,但是我看不到自定义登录页面和注册页面的方法.我使用pip安装了flask-user

Have been working on Flask-user for the user management system, But I couldn't see a way to customise the login page and registration page. I installed flask-user using pip

pip install flask-user

任何帮助将不胜感激

推荐答案

templates 文件夹中,创建一个名为 flask_user 的新文件夹,然后您可以复制 login烧瓶用户使用的.html 和 register.html 页面到新创建的文件夹.然后,您可以根据需要修改它们.这些文件将覆盖 flask-user 使用的页面.

In templates folder, create a new folder named flask_user and you can copy the login.html and register.html pages used by flask-user to the newly created folder. Then you can modify them as per your requirements. These files will override the pages used by flask-user.

这篇关于[Flask]-自定义Flask-用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆