[web2py] Re: Como mostrar a imagem no HTML com web2py

2019-08-07 Thread Dave S
On Wednesday, August 7, 2019 at 11:05:14 AM UTC-7, Kimus wrote: > > ola eu segui essas instruções e deu quase td certo, só que a imagem não > aparece de jeito nem um > > > {{=IMG(_src=URL("download", auth.user.foto))}} > > > > eu não criei a função pq eu não preciso ja que o auth_us

[web2py] Re: How can I insert image in HTML from database?

2019-08-07 Thread Val K
to make it works, files should be loaded using web2py interface (SQLFORM or programmatically - see the book). As far as I can see you have legacy database with already srored images in it, no? If so you can try to use 'uploadfield' option, i.e. you should have 2 fields in your model (upload and

Re: [web2py] How to use web packages in Web2Py (pandas, numpy etc.)

2019-08-07 Thread Nico Zanferrari
Hi, I've written a small howto that should answer your questions. Cheers, Nico Il giorno mer 7 ago 2019 alle ore 17:03 Dhruva Krishnamurthy < dhruva.krishn...@gmail.com> ha scritto: > I'm trying to build a web app with

[web2py] Re: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2019-08-07 Thread Thiago Gomes
make sure web2py is in *PYTHONPATH* Em quarta-feira, 1 de novembro de 2017 21:57:21 UTC-2, Massimo Di Pierro escreveu: > > make sure web2py is in PYTHON_PATH > > On Wednesday, 1 November 2017 08:19:02 UTC-5, Omicron VT wrote: >> >> >> >> El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omic

[web2py] How to use web packages in Web2Py (pandas, numpy etc.)

2019-08-07 Thread Dhruva Krishnamurthy
I'm trying to build a web app with some built in graphing and analytics methods. I have a prewritten .py file that I have uploaded into the modules tab, which requires many packages to run, such as pandas, numpy, matplotlib, etc. When I try and run the code however, the localhost is giving me a

[web2py] Re: How to do I stop auth.requires_login() from redirecting to the default/user controller?

2019-08-07 Thread Patito Feo
Hi, This is not working. Neither is this auth.settings.on_failed_authentication Any ideas? El viernes, 10 de mayo de 2019, 12:55:40 (UTC-5), Leonel Câmara escribió: > > You need to set login_url > > auth.settings.login_url = URL(YOUR_NEW_CONTROLLER, YOUR_NEW_FUNCTION) > -- Resources: - ht

[web2py] Re: How can I insert image in HTML from database?

2019-08-07 Thread Константин Комков
*Dave S*, maybe I don't see the out-of-the-box tool. I did all what were suggest *Rumos* and *Val K* like I understood: row = db().select(db.recipes.IMAGE).first() image = '' and tables.py db.define_table( 'recipes', Field('NAME',length=512), Field('IMAGE','*upload*'), migrate=Fals