Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
im having a problem where auth.py routes are not showing up when i put them in my url.
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 >"
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':
......