Skip to content
Myr

Merge branch 'master' of github.com:mitsuhiko/flask

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

authored by Armin Ronacher · committed by Armin Ronacher · parents a8f6f74, 05caa5a · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/deploying/wsgi-standalone.rst+2 added-2 removed
23 unmodified lines
24 gunicorn -w 4 -b 127.0.0.1:4000 myproject:app2526.. _Gunicorn: http://gunicorn.org/27.. _eventlet: http://eventlet.net/28.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html28.. _greenlet: http://greenlet.readthedocs.org/en/latest/2930Tornado31--------32
29 unmodified lines
62 http_server = WSGIServer(('', 5000), app)63 http_server.serve_forever()6465.. _Gevent: http://www.gevent.org/66.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html66.. _greenlet: http://greenlet.readthedocs.org/en/latest/67.. _libevent: http://monkey.org/~provos/libevent/6869Twisted Web70-----------
85 unmodified lines
modified:docs/patterns/fileuploads.rst+1 added-1 removed
20 unmodified lines
21bootstrapping code for our application::2223 import os24 from flask import Flask, request, redirect, url_for25 from werkzeug import secure_filename25 from werkzeug.utils import secure_filename2627 UPLOAD_FOLDER = '/path/to/the/uploads'28 ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])29
152 unmodified lines