-
-
Save Kd-Here/ea7edb3ac7fa3403952336deeb45188f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Blueprint,render_template | |
from flask_login import login_required,current_user | |
views = Blueprint('views',__name__) | |
@views.route('/') | |
@login_required #This decorator means you can't enter in homepage unless you are login | |
def home(): | |
return render_template('home.html',user=current_user) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment