Browse Source

Merge branch 'master' into config-support

pull/1638/head
Armin Ronacher 15 years ago
parent
commit
78fc9949aa
  1. 6
      docs/deploying/cgi.rst
  2. 2
      docs/patterns/caching.rst
  3. 2
      docs/patterns/lazyloading.rst

6
docs/deploying/cgi.rst

@ -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
---------------------- ----------------------

2
docs/patterns/caching.rst

@ -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

2
docs/patterns/lazyloading.rst

@ -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…
Cancel
Save