You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from flask import Blueprint, render_template
|
|
from models import Question
|
|
|
|
main_bp = Blueprint("main", __name__)
|
|
|
|
|
|
@main_bp.route("/")
|
|
def index():
|
|
first_question = Question.query.first()
|
|
return render_template("index.html", question=first_question)
|