forked from orbit-oss/flask
Merge branch 'master' into config-support
This commit is contained in:
commit
78fc9949aa
3 changed files with 5 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ is supported by all major servers but usually has a less-than-optimal
|
||||||
performance.
|
performance.
|
||||||
|
|
||||||
This is also the way you can use a Flask application on Google's
|
This is also the way you can use a Flask application on Google's
|
||||||
`AppEngine`_, there however the execution does happen in a CGI-like
|
`App Engine`_, there however the execution does happen in a CGI-like
|
||||||
environment. The application's performance is unaffected because of that.
|
environment. The application's performance is unaffected because of that.
|
||||||
|
|
||||||
.. admonition:: Watch Out
|
.. admonition:: Watch Out
|
||||||
|
|
@ -15,9 +15,9 @@ environment. The application's performance is unaffected because of that.
|
||||||
have in your application file, is inside an ``if __name__ ==
|
have in your application file, is inside an ``if __name__ ==
|
||||||
'__main__':`` or moved to a separate file. Just make sure it's not
|
'__main__':`` or moved to a separate file. Just make sure it's not
|
||||||
called because this will always start a local WSGI server which we do
|
called because this will always start a local WSGI server which we do
|
||||||
not want if we deploy that application to CGI / appengine.
|
not want if we deploy that application to CGI / app engine.
|
||||||
|
|
||||||
.. _AppEngine: http://code.google.com/appengine/
|
.. _App Engine: http://code.google.com/appengine/
|
||||||
|
|
||||||
Creating a `.cgi` file
|
Creating a `.cgi` file
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ memcached server then::
|
||||||
from werkzeug.contrib.cache import MemcachedCache
|
from werkzeug.contrib.cache import MemcachedCache
|
||||||
cache = MemcachedCache(['127.0.0.1:11211'])
|
cache = MemcachedCache(['127.0.0.1:11211'])
|
||||||
|
|
||||||
If you are using appengine, you can connect to the appengine memcache
|
If you are using App Engine, you can connect to the App Engine memcache
|
||||||
server easily::
|
server easily::
|
||||||
|
|
||||||
from werkzeug.contrib.cache import GAEMemcachedCache
|
from werkzeug.contrib.cache import GAEMemcachedCache
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ that uses decorators has to be imported upfront or Flask will never
|
||||||
actually find your function.
|
actually find your function.
|
||||||
|
|
||||||
This can be a problem if your application has to import quick. It might
|
This can be a problem if your application has to import quick. It might
|
||||||
have to do that on systems like Google's AppEngine or other systems. So
|
have to do that on systems like Google's App Engine or other systems. So
|
||||||
if you suddenly notice that your application outgrows this approach you
|
if you suddenly notice that your application outgrows this approach you
|
||||||
can fall back to a centralized URL mapping.
|
can fall back to a centralized URL mapping.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue