diff --git a/docs/deploying/wsgi-standalone.rst b/docs/deploying/wsgi-standalone.rst index 7a3ef0a9..c8d4f20e 100644 --- a/docs/deploying/wsgi-standalone.rst +++ b/docs/deploying/wsgi-standalone.rst @@ -25,7 +25,7 @@ For example, to run a Flask application with 4 worker processes (``-w .. _Gunicorn: http://gunicorn.org/ .. _eventlet: http://eventlet.net/ -.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html +.. _greenlet: http://greenlet.readthedocs.org/en/latest/ Tornado -------- @@ -63,7 +63,7 @@ event loop:: http_server.serve_forever() .. _Gevent: http://www.gevent.org/ -.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html +.. _greenlet: http://greenlet.readthedocs.org/en/latest/ .. _libevent: http://monkey.org/~provos/libevent/ Twisted Web diff --git a/docs/patterns/fileuploads.rst b/docs/patterns/fileuploads.rst index d237b107..eef50a9a 100644 --- a/docs/patterns/fileuploads.rst +++ b/docs/patterns/fileuploads.rst @@ -22,7 +22,7 @@ bootstrapping code for our application:: import os from flask import Flask, request, redirect, url_for - from werkzeug import secure_filename + from werkzeug.utils import secure_filename UPLOAD_FOLDER = '/path/to/the/uploads' ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])