Skip to content
Myr

fixed import of werkzeug secure_filename

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Justin Poehnelt · committed by Justin Poehnelt · parent 3fe68c2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/quickstart.rst+1 added-1 removed
610 unmodified lines
611pass it through the :func:`~werkzeug.utils.secure_filename` function that612Werkzeug provides for you::613614 from flask import request615 from werkzeug import secure_filename615 from werkzeug.utils import secure_filename616617 @app.route('/upload', methods=['GET', 'POST'])618 def upload_file():619 if request.method == 'POST':
271 unmodified lines