[web2py] Could this problem in production be related to web2py?

2019-05-09 Thread Lisandro
I'm running web2py in a production environment that handles about 30 requests per second, using Nginx + uWSGI. The server is a Linode VPS with 16 cores. uWSGI runs an average of 30 workers (it spawns or recycles workers depending on traffic load) The server has plenty of resources available (CP

[web2py] css templates layouts for web2py

2019-05-09 Thread Alex Beskopilny
Hi ! https://github.com/ali96343/facew2p.git Here is a script that generates web2py application from css templates. The script generates layouts, form (from html tag ), tables (from html tag ). The script has been tested on 50 templates. Thanks and best regards, Alex Beskopilny

[web2py] Re: Could this problem in production be related to web2py?

2019-05-09 Thread Leonel Câmara
Seems like a locking problem due to threads. Do you create any thread in your application? If so you need to remove master=true from your uwsgi .ini config. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

[web2py] Compiled pack always includes databases and private dirs. Is there any way to pack w/o those?

2019-05-09 Thread João Matos
Hello, Compiled pack always includes databases and private dirs. Is there any way to create a compiled pack without including those dirs? Thanks, JM -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Re: Could this problem in production be related to web2py?

2019-05-09 Thread Lisandro
Hi Leonel, thank you very much for your time. uWSGI docs confirm what you suggest: *"The emperor should generally not be run with --master, unless master features like advanced logging are specifically needed."* Allow me to make one last question: what do you mean by "create any thread in your

[web2py] Re: Could this problem in production be related to web2py?

2019-05-09 Thread Leonel Câmara
Yes I meant stuff exactly like that. -- 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 Gr

[web2py] Re: Could this problem in production be related to web2py?

2019-05-09 Thread Lisandro
I've checked my app's code once again and I can confirm that it doesn't create threads. It only uses subprocess.cal() within functions that are called in the scheduler environment, I understand that's the proper way to do it because those calls don't run in uwsgi environment. In the other hand,

[web2py] Re: Future of web2py

2019-05-09 Thread Massimo Di Pierro
Good question. We are not dropping web2py support. We will continue improve web2py. You may have seen a lot of work in that direction recently, mostly thanks to Paolo. Also over the years we made web2py work with python 3. Yet web2py is showing its age. If you are building something new I wil

[web2py] Re: How to change the time zone in web2py under PythonAnywhere?

2019-05-09 Thread Massimo Di Pierro
Mind os.eviron is not thread safe. You are changing not your one app, but for all your installed web2py apps. On Tuesday, 7 May 2019 11:06:21 UTC-7, jcrma...@gmail.com wrote: > > I was able to solve it by adding > time.tzset() > after the > os.environ["TZ"] = "Europe/Lisbon" > in the wsgi confi

[web2py] Re: SQLAlchemy Core vs PyDAL?

2019-05-09 Thread Massimo Di Pierro
Unless things change web2py supports more engines than sqlalchemy ven if not all equally well. The migration logic is very different. The syntax is very different. pydal is integrated with web2py forms and has logic for exposing REST APIs. It is actually being improved a lot these days. I will w

[web2py] Validate image with IS_IMAGE()

2019-05-09 Thread Christian Varas
Hello guys, I'm trying to validate and save and image from FieldStorage() of ckeditor (not from the web2py slices) i'm using the validor IS_IMAGE() like this IS_IMAGE()(request.vars['upload'].value) I'm getting the following "invalid image" message. ('\x89PNG\r\n\x01\x11\x10\x81\xad\x04d\xd8le\x

Re: [web2py] Re: Future of web2py

2019-05-09 Thread Martin Weissenboeck
Is it planned that web3py will support the development of PWAs? Martin Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > Good question. > > We are not dropping web2py support. We will continue improve web2py. You > may have seen a lot of work in that dir