Browse Source

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.
pull/2231/head
Adam Geitgey 8 years ago committed by Adrian
parent
commit
ae1ac2053b
  1. 2
      docs/patterns/fileuploads.rst

2
docs/patterns/fileuploads.rst

@ -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'

Loading…
Cancel
Save