Answers for "NameError: name 'name' is not defined flask"

0

app = Flask(_name_) NameError: name '_name_' is not defined

from flask import Flask
app = Flask(_name_)

@app.route("/")
def hello():
    return "hello world!"
    app.run()
Posted by: Guest on May-29-2020
0

NameError: name 'name' is not defined flask

from flask import Flask
app = Flask(__name__) # underscore should be two times before and after name

@app.route("/")
def hello():
    return "hello world!"
    app.run()
Posted by: Guest on September-26-2021

Code answers related to "NameError: name 'name' is not defined flask"

Python Answers by Framework

Browse Popular Code Answers by Language