correction to the DOC

Issue #9 new
Anonymous created an issue

In the main doc page that is exported to the flask extensions page. There is an example:

@app.route('/upload', methods=['GET', 'POST']) {{{


if request.method == 'POST' and 'photo' in request.files:
    filename =['photo'])
    rec = Photo(filename=filename,
    flash("Photo saved.")
    return redirect(url_for('show',
return render_template('upload.html')

}}}def upload():

The two lines of code with "rec" are referring to store some information in a DB of some kind. It is very misleading. It would be nicer with a comment or even remove it.

Comments (1)

  1. Log in to comment