Python Flask Basics Character Builder Flash a Message

flash() a message in the fishy() view before the return. The message can have any content you want.

Bummer: Environment Builder has no object 'find'

flask_app.py
from flask import Flask, redirect, url_for,flash

app = Flask(__name__)

app.secret_key="#$##fdfvG556564GCGFG454"

@app.route('/')
def index():
    return render_template("index.html")

@app.route('/fishy')
def fishy():
    flash("Glen")
    return redirect(url_for('index'))
Brandon Galde
Brandon Galde
9,477 Points

It looks like you removed one of the imports from flask that is needed for this bit of code. You're no longer importing render_template.