Я следую краткому руководству по Flask. http://flask.pocoo.org/docs/quickstart/#static-files Я получаю эту ошибку, когда следую руководству.
/application
/__init__.py
/templates
/hello.html
@app.route('/hello/')
@app.route('/hello/')
def hello(name=None):
return render_template('hello.html', name=name)
>python _init_.py
Traceback (most recent call last):
File "_init_.py", line 4, in
@app.route('/hello/')
NameError: name 'app' is not defined