[web2py] Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-19 Thread Carlos A
After the oficial announce from webfaction (goDaddy) about the inminent shutdown of Web2Py support, I decided to migrate my Apps to Opalstack.com . I want to share with you the procedure what I received from the support guys (It works!!!). The initial web2py installer script is attached.

Re: [web2py] Re: python3 sintax

2020-10-19 Thread António Ramos
thank u :) Em seg., 19 de out. de 2020 às 22:13, Jose C escreveu: > > > On Monday, 19 October 2020 22:06:02 UTC+1, Ramos wrote: >> >> can someone help ? understant why this worked in python 2.7 and not python >> 3.6 >> >> File >>

[web2py] Re: python3 sintax

2020-10-19 Thread Jose C
On Monday, 19 October 2020 22:06:02 UTC+1, Ramos wrote: > > can someone help ? understant why this worked in python 2.7 and not python > 3.6 > > File > "/home/ramos/apps/fileit/web2py/applications/fileit/views/default/user.html", > line 75 > if 'HELP' in globals() and

Re: [web2py] Re: opalstack dal connection time out ?

2020-10-19 Thread Jose C
On Monday, 19 October 2020 21:51:00 UTC+1, Ramos wrote: > > got the answer from support > > Hi António, if you need psycopg2 then please install it like this: > > export PATH=/usr/pgsql-11/bin/:$PATH > cd ~/apps/fileit > source env/bin/activate > pip install psycopg2 > > Glad to hear it's

[web2py] python3 sintax

2020-10-19 Thread António Ramos
can someone help ? understant why this worked in python 2.7 and not python 3.6 File "/home/ramos/apps/fileit/web2py/applications/fileit/views/default/user.html", line 75 if 'HELP' in globals() and globals()['HELP']<>[]: ^ SyntaxError:

Re: [web2py] Re: opalstack dal connection time out ?

2020-10-19 Thread António Ramos
got the answer from support Hi António, if you need psycopg2 then please install it like this: export PATH=/usr/pgsql-11/bin/:$PATH cd ~/apps/fileit source env/bin/activate pip install psycopg2 -- Sean from (((Opalstack It worked for me thank you Em seg., 19 de out. de 2020 às 20:03,

[web2py] Re: opalstack dal connection time out ?

2020-10-19 Thread Jose C
I'm also on opal5 using postgres but still on web2py 2.18.5 (can't upgrade due to unresolved redis session issue). I suspect you have a library version problem. You're using the default system-wide python3 install, which is using psycopg2 version 2.7.7. (Run psycopg2.__version__ at the

[web2py] opalstack dal connection time out ?

2020-10-19 Thread António Ramos
hello i´m starting my journey on Opalstack and my app cant connect to the postgresql db db = DAL('postgres://user:pwdXru@localhost:5432/database', the previous line does not work. I checked that psycopg2 is available in python command line [image: image.png] Failure to connect, tried 5 times:

Re: [web2py] Re: Object type None error

2020-10-19 Thread Jim Steil
Very happy that you found the solution. Jim On Mon, Oct 19, 2020, 1:04 AM T.R.Rajkumar wrote: > Dear Jim S > I found the error to be in the database in one of the tables. When I > corrected the form worked nicely. It was all a programming error on my > part. Thank you so much for your

[web2py] Re: routes.py and root_static

2020-10-19 Thread Jose C
On Monday, 19 October 2020 10:33:50 UTC+1, Annet wrote: > > Hi Jose, > > Thanks for your reply. > > One more thing. I've got routes.py in web2py's root folder, as you can see > I've got > three applications, do I place the robots.txt file in all three > application's static > folder? > > Yes

[web2py] Re: routes.py and root_static

2020-10-19 Thread 'Annet' via web2py-users
Hi Jose, Thanks for your reply. One more thing. I've got routes.py in web2py's root folder, as you can see I've got three applications, do I place the robots.txt file in all three application's static folder? Kind regards, Annet Op vrijdag 16 oktober 2020 om 12:39:18 UTC+2 schreef Jose C:

[web2py] Re: Object type None error

2020-10-19 Thread T.R.Rajkumar
Dear Jim S I found the error to be in the database in one of the tables. When I corrected the form worked nicely. It was all a programming error on my part. Thank you so much for your valuable time and effort in helping me out. Web2py rocks. -- Resources: - http://web2py.com -