Hi, guru. I tried to deploy flask app on gae with py2.7, but i faced with the problem that i could not resolve. I have look throught many examples deploy flask app on gae with py2.5, but i have not found with py 2.7. Any idea? -- klinkin Отправлено с помощью Sparrow (http://www.sparrowmailapp.com/?sig)
Le 23/01/2012 23:48, klinkin a écrit : > I tried to deploy flask app on gae with py2.7, but i faced with the > problem that i could not resolve. Hi, I have not used GAE, but what specific problems did you encounter? Maybe we can help with these. Regards, -- Simon Sapin
Flask need werkzeug and jinja2 for work. gae have jinja2 in the libraries (just add two lines in yaml file) while flask and werkzeug isn't in gae libraries. you need add those libraries in your app: just a brutal copy and paste from repos. -- Gianni
Btw, this is a good writeup explaining the changes going from python(2.5) to python27 on GAE. http://blog.notdot.net/2011/10/Migrating-to-Python-2-7-part-1-Threadsafe On Tue, Jan 24, 2012 at 8:15 AM, Gianni <giannidn@gmail.com> wrote: > Flask need werkzeug and jinja2 for work. > gae have jinja2 in the libraries (just add two lines in yaml file) while > flask and werkzeug isn't in gae libraries. you need add those libraries in > your app: just a brutal copy and paste from repos. > -- Gianni > >
hi, see this http://bit.dinoia.eu/flask-gae-login-skeleton/src remember flask and werkzeug folders. -- Gianni
Following up on this late ... Gianni's link seems dead. Does anyone have some good instructions on setting up flask on gae python27 runtime? Thanks. On Mon, Jan 23, 2012 at 6:34 PM, Gianni <giannidn@gmail.com> wrote: > hi, > see this http://bit.dinoia.eu/flask-gae-login-skeleton/src > remember flask and werkzeug folders. > > -- Gianni > >
the docs have a link to a better boilerplate http://flask.pocoo.org/docs/quickstart/#deploying-to-a-web-server -- Gianni 2012/4/21 Jay Baker <jbaker.work@gmail.com> > Following up on this late ... Gianni's link seems dead. > > Does anyone have some good instructions on setting up flask on gae > python27 runtime? > > Thanks. > > > On Mon, Jan 23, 2012 at 6:34 PM, Gianni <giannidn@gmail.com> wrote: > >> hi, >> see this http://bit.dinoia.eu/flask-gae-login-skeleton/src >> remember flask and werkzeug folders. >> >> -- Gianni >> >> >
Hmm ... you are referring to the "Deploying Flask on App Engine" github setup? That one does not have anything to do with the pyhton27 runtime. However, I tried exposing app.wsgi_app to the App Engine environment and that seems like it is working. I'm not sure it is correct though. On Sat, Apr 21, 2012 at 2:08 PM, Gianni <giannidn@gmail.com> wrote: > the docs have a link to a better boilerplate > http://flask.pocoo.org/docs/quickstart/#deploying-to-a-web-server > -- Gianni > > > > 2012/4/21 Jay Baker <jbaker.work@gmail.com> > >> Following up on this late ... Gianni's link seems dead. >> >> Does anyone have some good instructions on setting up flask on gae >> python27 runtime? >> >> Thanks. >> >> >> On Mon, Jan 23, 2012 at 6:34 PM, Gianni <giannidn@gmail.com> wrote: >> >>> hi, >>> see this http://bit.dinoia.eu/flask-gae-login-skeleton/src >>> remember flask and werkzeug folders. >>> >>> -- Gianni >>> >>> >> >
btw the link now work again -- Gianni
Thanks, Gianni. But i don't understand what you're mean "remember flask and werkzeug folders". -- klinkin Отправлено с помощью Sparrow (http://www.sparrowmailapp.com/?sig) вторник, 24 января 2012 г. в 3:34, Gianni написал: > hi, > see this http://bit.dinoia.eu/flask-gae-login-skeleton/src > remember flask and werkzeug folders. > > -- Gianni