Re: [web2py] web2py AWS cognito authentication

2018-09-18 Thread Chinh Dang
Have you created a User Pool in Cognito to store the user profile? If you have configured it correctly, you should get a token when your app call Cognito to authenticate the credentials. If you get None response, there could be a configuration issue. On Tue, Sep 18, 2018 at 9:09 AM wrote: > I

Re: [web2py] Re: horizontal scaling question

2018-01-06 Thread Chinh Dang
So given the example below from the book, I would add all the controller functions that does database read to read_only_actions list? I would have to continuously maintain this list as my application grows. Is this the right approach? if request.function in read_only_actions: db =

Re: [web2py] Re: horizontal scaling question

2018-01-05 Thread Chinh Dang
How does web2py select a database to connect to based on the http request content? Is it feasible to connect to different databases depending on whether it is a read request or a write request? Can you provide example on how to do this? On Fri, Jan 5, 2018 at 6:35 PM, Anthony

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Chinh Dang
You can look into cloud-based solutions such as AWS RDS for your database hosting. RDS should scale your compute resources automatically. On Nov 29, 2017 11:28 AM, "Áureo Dias Neto" wrote: > My processor: Intel Xeon quad core 2.5 GHz > Disk: 1tb HD > > > do you

Re: [web2py] Re: MySql encryption using DAL

2017-10-12 Thread Chinh Dang
Depending on the type of cloud service you may be able to setup VPN over internet and connect your DB via the VPN tunnel. On Oct 11, 2017 11:24 PM, wrote: On Wednesday, October 11, 2017 at 11:52:02 AM UTC-5, Massimo Di Pierro wrote: > > > On Saturday, 7 October 2017

Re: [web2py] Re: dumb question about sessions server used to store tables in order to avoid hits to db

2017-09-07 Thread Chinh Dang
Can we purge only a subset of sessions? On Sep 7, 2017 5:17 PM, "Anthony" wrote: > On Thursday, September 7, 2017 at 1:18:10 PM UTC-4, Alex Glaros wrote: >> >> is it theoretically possible to leverage redis as a sessions store so >> that web2py session can hold many of the

Re: [web2py] Re: Best practice regarding applications

2017-09-07 Thread Chinh Dang
You may also want to consider the availability of your applications. By having all your apps on a single server and if the server is down, all your apps will also be impacted. Unless, you have high availability built in at the server level, i.e. cluster. On Sep 7, 2017 7:00 AM, "Najtsirk"

Re: [web2py] CSS and SQLFORM.GRID

2017-08-10 Thread Chinh Dang
Clear your browser cache and try again. If still doesn't work, make sure your custom css file loads after the others. On Aug 9, 2017 4:03 PM, "LC LC" wrote: Hello, I use my own css file, but when i try to use in my view {{=records}} the code generates web2py style class

Re: [web2py] book help

2017-08-04 Thread Chinh Dang
I'll be more than happy to assist. How do I start? On Aug 4, 2017 11:34 AM, "Massimo Di Pierro" wrote: > Can I ask for some help in editing the book. specifically: > > 1) describe {{=ASSIGNJS(js_var = python_var)}} > > 2) new syntax to store .table files in DB itself

Re: [web2py] Re: web2py deployment strategies

2017-07-20 Thread Chinh Dang
Our app starts small maybe around 50 tables max, but may grow as more features are being added. Planning to use load balancing and failover. Since you use redis, can you give me a ballpark on the memory usage for the amount of traffic you have? My concern is when the redis host runs out of memory.

Re: [web2py] Re: Scaling web2py

2017-06-23 Thread Chinh Dang
How to decide which method to used - shared folder or database? On Jun 23, 2017 4:21 PM, "Anthony" wrote: > Either store sessions in the database or use stick sessions. See > http://web2py.com/books/default/chapter/29/13/ > deployment-recipes#Efficiency-and-scalability. > >

Re: [web2py] New site on web2py

2017-06-14 Thread Chinh Dang
Beautiful design. Did you use any particular bootstrap-based theme for this? On Jun 14, 2017 9:36 AM, "Ian Ryder" wrote: > Hi all, not sure if it's OK to do this - slap me down if not! > > We're just about to launch a new tool / site based on web2py - >