Correct imports in file upload example (#2230)

The example code uses `flash` but doesn't import it. So the code as written doesn't work.

This simply adds `flash` to the list of imports in the sample code.
This commit is contained in:
Adam Geitgey 2017-04-04 13:26:40 -07:00 committed by Adrian
parent de555c82ce
commit ae1ac2053b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ specific upload folder and displays a file to the user. Let's look at the
bootstrapping code for our application::
import os
from flask import Flask, request, redirect, url_for
from flask import Flask, flash, request, redirect, url_for
from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/path/to/the/uploads'