forked from orbit-oss/flask
Merge branch 'master' of github.com:mitsuhiko/flask
This commit is contained in:
commit
b0f8d0f01b
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue