Re: [web2py] Which 4 or 2?

2020-04-18 Thread David Swarbrick
Thank you for the encouragement, and the really useful resources identified. I think I have to work through the book, and where something really is not understandable (for me), keep going back a few pages and trying again. David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel 07

Re: [web2py] Which 4 or 2?

2020-04-18 Thread Lovedie JC
Check out the video tutorials on vimeo as well. They're great Regards On Sat, Apr 18, 2020, 11:11 David Swarbrick wrote: > Thank you for the encouragement, and the really useful resources > identified. > > I think I have to work through the book, and where something really is not > understandabl

[web2py] {{block head}}{{end}}

2020-04-18 Thread 'Annet' via web2py-users
What is the use of: {{block head}}{{end}} {{block page_js}}{{end page_js}} In layout.html I expected something like this: {{block head}} all head elements here {{end}} But I obviously didn't get it :-( Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Visual Studio Code

2020-04-18 Thread Andrea Fae'
How to use visual Studio Code like IDE and debugger for the last version of web2py? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You receive

[web2py] Re: Open form action in new window/tab only when validation passed

2020-04-18 Thread 'Yan Wong' via web2py-users
I think I've worked out what I *want* to do, but I'm not sure if this is easy in web2py. I want to use the onsubmit handler in a form to reload the form from a .load view, but return false so that the *final* submit action is not called. Then, if the reloaded form validates, I can set response.j

[web2py] How do i get mu download function to download my image with its original name

2020-04-18 Thread mostwanted
I want to download an image but i want it to download with its originally saved name, is there a way I can modify my download function to do this? So far its downloading properly as desired its just that its renaming images with dates e.g: * (IMG-20200418-WA0002)* *IMAGE BEING DOWNLOADED

[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
So I checked gluon/contrib and it wasn't there, so I moved it into gluon/contrib. Restarted nginx. Still getting the same error. On Thursday, April 16, 2020 at 3:57:53 PM UTC-5, Dave S wrote: > > > > On Wednesday, April 15, 2020 at 4:52:50 PM UTC-7, Valdeck Rowe wrote: >> >> I've copied the psyco

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Lovedie JC
I once had the same error, Updated Web2py then copied the psycopg2 in the modules folder. It worked for me. Regards On Sat, Apr 18, 2020, 19:09 Valdeck Rowe wrote: > So I checked gluon/contrib and it wasn't there, so I moved it into > gluon/contrib. Restarted nginx. Still getting the same error.

[web2py] Creating cookie if not present and modify it if present

2020-04-18 Thread Jon Subscripted
Hi everyone, I'm facing some problems handling cookies. I need to store and update a value for non-auth users. I need to do it throughout the session (this could be done with session cookies) but also between different sessions. That's why I decided to use cookies. I tried to follow web2py books'

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
Thanks, will try this and let you know how it goes. On Saturday, April 18, 2020 at 12:15:35 PM UTC-5, Lovedie JC wrote: > > I once had the same error, > Updated Web2py then copied the psycopg2 in the modules folder. > It worked for me. > Regards > > On Sat, Apr 18, 2020, 19:09 Valdeck Rowe > >

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
Did not work for me. I wonder what I might be missing. On Saturday, April 18, 2020 at 2:25:54 PM UTC-5, Valdeck Rowe wrote: > > > Thanks, will try this and let you know how it goes. > > On Saturday, April 18, 2020 at 12:15:35 PM UTC-5, Lovedie JC wrote: >> >> I once had the same error, >> Updated

[web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Valdeck Rowe
Is it possible for me to use the pg8000 driver? On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote: > > Greetings, > > Got this error on a production Centos 7 box (on an intranet) after running > the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to update > web2py be