Open RonKat2008 opened 2 years ago
the second parameter in the blueprint name
is a not valid input try __name__
auth = Blueprint('auth', __name__)
@auth.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
......
from flask import Blueprint
auth = Blueprint('auth', name)
@auth.route('/login') def login(): return "< p >Login< /p >"
@auth.route('/logout') def logout(): return "< p >Logout < /p >"
@auth.route('/sign-up') def sign_up(): return "< p >Sign Up< /p >"