[web2py] Re: py4web - javascript references in html files

2020-01-20 Thread Massimo Di Pierro
Good question. Not sure there is a way that is best. You are free to use URL everywhere but often it is not-necessary, specifically because all static files have the same prefix. It is therefore faster and more concise to use the above syntax. On Sunday, 19 January 2020 09:35:27 UTC-8, Jim S

Re: [web2py] py4web - using session object in a template

2020-01-20 Thread Massimo Di Pierro
I would recommend you do something like this @action('index') @action.uses('index.html', session) def index(): ... return dict(session=dict(session)) This will pass a shallow copy of the session to the view. You will be free to read from the session in index.html but you should not

[web2py] Re: Web2py or py4web for a brand new project

2020-01-20 Thread Massimo Di Pierro
You should use the py4web documentation. Also please report any error you find. On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote: > > Hi > > Is the documentation for web2py still mostly relevant for py4web? > > Thanks > Andrew > > On Thursday, 12 December 2019 20:47:05 UTC+6:30,

[web2py] Re: Creating web apps with Web2py in Azure Web Apps

2020-01-20 Thread Prasad telkikar
Hi Nbush, I tried all the steps mentioned here, but for me, these steps are not working even for a given example. SO link which explains my attempt and steps: https://stackoverflow.com/q/59749220/6299857 Can you please explain what I am missing over here or working example of web2py

Re: [web2py] py4web questions

2020-01-20 Thread Bruno Sarverry
Hello John! did you solve it? I have the same problem. El jueves, 26 de septiembre de 2019, 6:05:52 (UTC-3), John Bannister escribió: > > Hi Massimo, > > Have one more question which may or may not be related. > > I have multiple controllers all including the same layout.html. In the >

[web2py] Web2py - How would I monitor an existing running script?

2020-01-20 Thread Simon Dreyer
Hi Folks, I have an existing python application that reads data from industrial controllers and publishes it to a message queue. The application is currently headless and logs errors and events to a log file. I would like to add a web interface to the application so that I can log into the app

Re: [web2py] No driver of supported ones ('psycopg2',) is available

2020-01-20 Thread Lovedie JC
I had to copy it, the folder to Web2py modules folder for it to work. You can also copy to Web2py site packages folder. Regards On Mon, Jan 20, 2020, 20:53 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > Last week I upgraded my development environment from Mac OS X Mavericks - >

[web2py] No driver of supported ones ('psycopg2',) is available

2020-01-20 Thread 'Annet' via web2py-users
Last week I upgraded my development environment from Mac OS X Mavericks - Python 2.7 - Web2py 2.14.5 to Mac OS X Catalina - Python 2.7 - Web2py 2.18.5, since then I have the following issue: Failure to connect, tried 5 times: Traceback (most recent call last): File

[web2py] web2py and reverse proxy. How to expose a single application behind a hostname

2020-01-20 Thread Manuele Pesenti
Hi! For our deploy installation I followed successfully the procedures in documentation so now I have my server exposing the web2py root, now I tried to configure a second host name using an apache reverse proxy configuration to serve directly a specific application, is it possible? Let's

Re: [web2py] py4web - auto-reload

2020-01-20 Thread Jim Steil
Thank you very much. I will look into this. What I was hoping for was an auto-reload the way Flask does it. If you're in a dev environment it auto-reloads for you, no extra work on my part. But, I'll check this out, it should save me quite a few extra keystrokes -Jim On Mon, Jan 20, 2020 at

Re: [web2py] py4web - auto-reload

2020-01-20 Thread António Ramos
in 2014 i did this "live reload thing" with web2py https://www.youtube.com/watch?v=zt5gnKk40Zw Em seg., 20 de jan. de 2020 às 15:57, António Ramos escreveu: > I bet it can be done with https://gruntjs.com/ or https://gulpjs.com/ or > the new kid https://parceljs.org/ > > > > Em dom., 19

Re: [web2py] py4web - auto-reload

2020-01-20 Thread António Ramos
I bet it can be done with https://gruntjs.com/ or https://gulpjs.com/ or the new kid https://parceljs.org/ Em dom., 19 de jan. de 2020 às 17:40, Jim S escreveu: > Is there a way to get py4web to auto-reload when the source for an app has > changed? > > -Jim > > -- > Resources: > -

[web2py] Py4web: ¿Practical example step by step?

2020-01-20 Thread Yuver Parra
Good morning and thanks in advance for sharing your knowledge in this group. Do any of you have a practical example where you can follow step by step learning from the installation of py4web to the setting up of a site? Thanks for the reply. -- Resources: - http://web2py.com -