[web2py] How to debug views?

2018-11-18 Thread Ivan Gazzola
I'm writing my code with Pycharm and I like testing my code and debug with breakpoints. Is there a way to debug python code in views? I can't figure out how to do that, I just check errors in admin interface :( Thx Ivan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] Re: admin IDE for general use

2018-11-18 Thread lucas
alright, thank you for your help. I've broken it down to its most basic level and its damn working. I'll post the essentials here. remember this is for a class to teach them the basics of programming. yeah, fun students... under the DAL I setup a simple table to store the code: NE = IS_NOT_

[web2py] Re: admin IDE for general use

2018-11-18 Thread lucas
oh, and btw, I have the whole server running off of a $35 Raspberry Pi 3b+, with PostGreSQL 9, Web2Py 2.17.2, and Nginx. I tricked the wifi of my institution to let the raspberry access and even though its a local address, students can access their code and view their results from whatever dev

[web2py] Web2py 2.27.2 missing pg8000 driver for postgresql databases

2018-11-18 Thread jonathan . clark
Hi, In the past I have successfully used driver pg8000 to access postgresql databases via the DAL. I have a live application now using web2py 2.16.1 and it works fine. I'm just trying to deploy a new application, and by default I used the latest version of web2py i.e. 2.17.2 and it fails with

[web2py] machine learning

2018-11-18 Thread Devyansh Bansal
i want to run machine learning code written in jupyter converted in .py on my website as a face login any help ?? -- 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 Issu

[web2py] Cannot see web2py applications behind apache, only see Apache default page

2018-11-18 Thread heisterm
I am trying to deploy web2py on Ubuntu 16.04 behind Apache. For that purpose, I have followed the deployment recipe , or more specifically the Apache setup

[web2py] PostgreSQL log flooded with "could not receive data from client: Connection reset by peer" messages;

2018-11-18 Thread Tadas U
Web2py version: Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 AFAIK, the scheduler is responsible, e.x.: SETUP (e.x.): scheduler.queue_task( 'test__task_insert', application_name='app', repeats=0, period=60, timeout=3600, retry_failed=-1) def task_insert(): db.table.insert(ti

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-11-18 Thread Dave
I'm having the same troubles after upgrading to python3 using Apache with libapache2-mod-wsgi-py3 4.5.17-1 on Ubuntu. I did delete all session files, and I am using fresh source code of web2py (R-2.17.2). I'm running several applications in web2py, and when i restart Apache they work for a whi

[web2py] Re: Dynamic url masking with routes.py?

2018-11-18 Thread Massimo Di Pierro
If I assume you have full control of both domains, I would use nginx to map domain1.com/$anything -> domain2/yourapp/yourcontroller/somefunction/$anything and then handle the mapping into somefunction. On Saturday, 3 November 2018 13:17:56 UTC-7, mweissen wrote: > > > I need a dynamic url mask

[web2py] Re: Web server with support for chunked transfer encoding

2018-11-18 Thread Massimo Di Pierro
I think rocket works fine for this. It is just that you may uploading the content in the body and not in a variable therefore web2py does not know how to parse it. try look into data = request.body.read() On Thursday, 8 November 2018 08:18:41 UTC-8, icodk wrote: > > Tried with Rocket No error

[web2py] Re: Is it possible to share cache between two differente web2py applications?

2018-11-18 Thread Massimo Di Pierro
approved! :-) On Wednesday, 14 November 2018 08:02:07 UTC-8, Lisandro wrote: > > I've created a pull request to achieve this: > https://github.com/web2py/web2py/pull/2055 > > If it's not accepted (which is totally ok with me), I would like to know > if I have some other alternative. > Thanks! > >

Re: [web2py] Re: Dynamic url masking with routes.py?

2018-11-18 Thread Martin Weissenboeck
ok, thank you. I'll try it. Regards Martin Am So., 18. Nov. 2018 um 19:50 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > If I assume you have full control of both domains, I would use nginx to map > > domain1.com/$anything -> > domain2/yourapp/yourcontroller/somefunction/$anything

[web2py] Re: Web server with support for chunked transfer encoding

2018-11-18 Thread icodk
Hi I Trier data = request.body.read() But it returned nothing You can easily test it with curl and Chunked transfer encoding header If it works for you let me know Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Cannot see web2py applications behind apache, only see Apache default page

2018-11-18 Thread 黄祥
there's a lot of discussion in this forum about this, that apache is not recommended, there are another solution for that: - pls use another web server, e.g. nginx, gunicorn, etc - use apache as an proxy to 'another' web server best regards, stifan -- Resources: - http://web2py.com - http://web

[web2py] Re: admin IDE for general use

2018-11-18 Thread Val K
Glad to help you, Lucas! $35 for the server with pg is really cool! -- 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