Re: [flask] Flask and Google App Engine caching
- From:
- Kamal Gill
- Date:
- 2011-11-04 @ 05:05
Hi Robert,
Flask apps on GAE *do* take advantage of app caching if the
'run_wsgi_app(FLASK_APP)' stanza is in the main() function.
See the flask-appengine-template boilerplate project code at
https://github.com/kamalgill/flask-appengine-template/blob/master/src/main.py
for an example.
Note: app caching will change a bit in the Python 2.7 runtime, as
described by Nick Johnson at
http://blog.notdot.net/2011/10/Migrating-to-Python-2-7-part-1-Threadsafe
I hope to update my Flask on GAE boilerplate code when Py 2.7 support is
enabled in dev_appserver
HTH,
Kamal
On Nov 3, 2011, at 10:16 AM, Robert Moskal wrote:
> Greetings all:
>
> I've been enjoying using flask to create a little restful web service
that will run in the google app engine. I've been reading that the app
engine will cache handler scripts if they are in a file with a main()
function. I'm curious as to whether flask applications in the google app
engine can take advantage of this.
>
> Thanks and regards,
>
> Robert Moskal
> ___________
> Robert Moskal
> Most Media
> Brooklyn, USA