Created
February 3, 2020 17:44
-
-
Save Porter97/975a06fcea50e5c15369e5396ac05bb3 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 ..models import User | |
@main.route('/') | |
def index(): | |
return render_template('index.html') | |
@main.route('/user/<username>') | |
def user(username): | |
user = User.query.filter_by(username=username).first_or_404() | |
return render_template('user.html', user=user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment