[web2py] Re: py4web - Deployment on GCloud (aka Google App Engine)

2020-04-16 Thread Jacinto Parga
Hi Andrew,

How did you connect with Datastore. I mean, how did you configure db in 
settings.py?

Thanks 

El lunes, 13 de abril de 2020, 0:38:35 (UTC+2), Andrew W escribió:
>
> Hi all,
> Not a question but a tip for others experimenting with py4web on GCP App 
> Engine.
>
> Following the instructions in the _documentation, after a few failed 
> attempts to access my app (with 502 and 404 errors), I modified the deploy 
> command in the Makefile by adding the --promote flag to make it :
>
> gcloud app deploy app.yaml --promote
>
>
> I'm ready to build out my first py4web app !
>
> Might be worth adding this to the script and/or documentation.
>
>
> Regards
>
> Andrew W
>
>
>
>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4f78d4ae-f645-4527-8c15-b30d7178c13a%40googlegroups.com.


[web2py] Re: SQLFORM labels and input boxes overlapping

2020-04-16 Thread Dave S


On Thursday, April 16, 2020 at 8:11:41 AM UTC-7, Jonsubs wrote:
>
> Hi everyone,
> In some of my views using SQLFORM, specially when the label text is not 
> short, the input box overlaps and covers part of the label text.
>
> How can I avoid this?
>
> As this is automatically generated HTML, I do not have clear where should 
> I look.
> Regards, Jon.
>

Look in the book for the _style keyword for some helpers.  You can use it 
to set widths.  I do something like with SQLTABLE to adjust column widths.

/dps


>
> 
>  Libre 
> de virus. www.avast.com 
> 
>  
> <#CAK8tz32yQknqnSwpAC+j=N_V45RZA+GqmaYD5kRPc0MrnEHmpA@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/dc5f7f99-554a-4251-9a1c-e42e0a3efab6%40googlegroups.com.


[web2py] Re: Web2py routes domains do not work for me anymore

2020-04-16 Thread Dave S


On Wednesday, April 15, 2020 at 5:31:48 PM UTC-7, Anatoli Hristov wrote:
>
> nothing in the web2py log file, file not even created!
>
>
Have you set up the logging controls?  There's logging.conf in the web2py 
folder.  My quick search doesn't show where in the book this is described, 
but the sample logging.conf in the distribution should help.



 

> I don't know how to define the favico.ico in nginx. 
> However, if I delete the routes.py everything works, but I need to define 
> domains for my apps!
>
>
That would be using a URL match and the try_files verb .   I do the 
root_static in routes.py for my /favico.ico. but I use try_files to dump a 
word list on some GETs for funny URLs (outsiders probing the site for 
leaks).

/dps

On Thursday, 16 April 2020 01:38:28 UTC+2, Dave S wrote:
>>
>>
>>
>> On Wednesday, April 15, 2020 at 4:20:18 PM UTC-7, Anatoli Hristov wrote:
>>>
>>> Found some log in nginx access.log:
>>>
>>> 10.63.238.14 - - [15/Apr/2020:23:18:00 +] "GET / HTTP/1.0" 500 21 
>>> "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 
>>> like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>>> 10.63.238.14 - - [15/Apr/2020:23:18:01 +] "GET /favicon.ico 
>>> HTTP/1.0" 500 21 "https://my.domain.xyz/"; "Mozilla/5.0  
>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
>>>
>>
>> Your ".xyz" matches what is in the routes.py?
>>
>> If you're not having nginx short cut to the static files (favicon.ico, in 
>> this case), then I would turn on web2py logging and see if the web2py.log 
>> has anything  
>>
>> Taking a quick look at my routes.py, I don't set domains, just the 
>> default application, but I do add
>> root_static = ['favicon.ico', 'robots.txt']
>>
>>
>> Don't know if that will help, but then I'm not a routes.py power user.
>>
>> /dps
>>
>>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2e34b167-0642-4a72-a7c8-94149be77003%40googlegroups.com.


[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-16 Thread Dave S


On Wednesday, April 15, 2020 at 4:52:50 PM UTC-7, Valdeck Rowe wrote:
>
> I've copied the psycopg2 package over to the web2py/site-packages folder, 
> added the packages folder to the path. Still nothing
>
>
My copy isn't in site-packages, it's in gluon/contrib.
 

> 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 before updating the application.
>>
>> Full error message: 
>>  Failure to connect, tried 5 times: 
>> Traceback (most recent call last): File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in 
>> __init__ self._adapter = adapter(**kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>> line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py", 
>> line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args, 
>> **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py", 
>> line 67, in __init__ after_connection, File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 85, in __init__ self.find_driver() File 
>> "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
>> 134, in find_driver "No driver of supported ones %s is available" % 
>> str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) 
>> is available 
>>
>>
>>
>> Pysocpg2 is already installed. The app was working before.
>>
>> Not sure why I'm getting this error when I'd been running fine before.
>>
>> Please help. The server has not been used in days and this is mission 
>> critical.
>>
>> Thanks in advance.
>> Valdeck
>>
>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4dad7973-15af-44f3-96cd-8d10e4d01d7b%40googlegroups.com.


[web2py] SQLFORM labels and input boxes overlapping

2020-04-16 Thread Jon Subscripted
Hi everyone,
In some of my views using SQLFORM, specially when the label text is not
short, the input box overlaps and covers part of the label text.

How can I avoid this?

As this is automatically generated HTML, I do not have clear where should I
look.
Regards, Jon.


Libre
de virus. www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
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 received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAK8tz32yQknqnSwpAC%2Bj%3DN_V45RZA%2BGqmaYD5kRPc0MrnEHmpA%40mail.gmail.com.