Python Flask Basics Welcome to Flask Create an app

Abdulraheeem Bakare
Abdulraheeem Bakare
4,019 Points

can i get some help pls :(

tried again and again and it's not working :(

flask_app.py
from flask import Flask, redirect, url_for, render_template, flash
app = Flask(__name__)


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

@app.route('/fishy')
def fishy():
    return redirect(url_for('index'))

import flash

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Abdulraheeem Bakare ! You're going way above and beyond what this challenge is asking for. Erase everything but your first two lines and it should pass the challenge.

Hope this helps! :sparkles:

Jassim Al-Hatem
Jassim Al-Hatem
13,161 Points
from flask import Flask

app = Flask(__name__)

That's all you need to pass the challenge.

Abdulraheeem Bakare
Abdulraheeem Bakare
4,019 Points

Thanks to you both because now i finally got tthe flasks badge 😍👍