[web2py] Re: Comparison doc for hosting a web2py app

2017-02-06 Thread Dave S
On Friday, February 3, 2017 at 6:14:59 PM UTC-8, Ron Chatterjee wrote: > > How do rack up $200/ month? I thought they only charge me $5 a month. > > That may be pythonanywhere is paying per node, with you $5 covering you access to that node. I don't know how many nodes pythonanywhere might be u

Re: [web2py] Fullcalendar scheduler

2017-02-06 Thread Richard Vézina
Here a pointer to an old post of I regarding fullcalendar : https://groups.google.com/d/msg/web2py/GQFIMbNmp_M/ZiRHLUQ_UAAJ Richard On Mon, Feb 6, 2017 at 4:53 PM, Richard Vézina wrote: > For my part, I create a json generating controller then in a dummy > (controller that does nothing else th

Re: [web2py] Fullcalendar scheduler

2017-02-06 Thread Richard Vézina
For my part, I create a json generating controller then in a dummy (controller that does nothing else than returning a empty string variable to the view) web2py view I initialiaze the fullcalendar plugin with json feed (https://fullcalendar.io/docs/event_data/events_json_feed/)... Good luck Richa

Re: [web2py] Re: japronto

2017-02-06 Thread Richard Vézina
I guess partly for the same reason we can't make cpython faster (GIL - https://wiki.python.org/moin/GlobalInterpreterLock)... But not only for this reason of course. But let ask the question differently, why is clienteside app faster? You move computer processing load to client in many part, you re

[web2py] Re: SQLite lock (using DAL in a module)

2017-02-06 Thread Anthony
On Monday, February 6, 2017 at 11:20:41 AM UTC-5, MarkEdson AtWork wrote: > > Also consider that every time any http request is made that all of your > modules will be loaded. It may be helpful to use cache.ram to store your > database connection so you can re-use it rather than creating a new

Re: [web2py] Re: Deploy with postgresql

2017-02-06 Thread Richard Vézina
A tricks I use when adding new table to backend, since I don't want to turn migration on over production system is to create an dummy app call generate_sql for instance... When I add new table in my main app, I copy the web2py model defined in the models file in the dummy app, access the app for on

[web2py] Re: memory leak - model remains in memory after requests

2017-02-06 Thread Anthony
On Friday, February 3, 2017 at 4:05:55 PM UTC-5, MarkEdson AtWork wrote: > > I found a similar issue with a db.py module with code like this in it... > > from gluon.packages.dal.pydal import DAL, Field > db = DAL("sqlite://storage.sqlite") > db.define_table( > "test", > Fiel

[web2py] Re: memory leak - model remains in memory after requests

2017-02-06 Thread Dave S
On Monday, February 6, 2017 at 9:00:21 AM UTC-8, MarkEdson AtWork wrote: > > I should also mention that I recently updated my code to use multiple > controllers. > > On Monday, February 6, 2017 at 7:53:20 AM UTC-8, MarkEdson AtWork wrote: >> >> Update, >> I ran the sample code I placed in this

[web2py] Re: Deploy with postgresql

2017-02-06 Thread MarkEdson AtWork
If the code that reads AppConfig can't handle whitespace then this bug should definitely be fixed! This type of bug can be very difficult to find because it is so esoteric. On Sunday, February 5, 2017 at 12:26:51 AM UTC-8, Ben Lawrence wrote: > > ok, my dumbness > the AppConfig module doesn't lik

[web2py] Re: memory leak - model remains in memory after requests

2017-02-06 Thread MarkEdson AtWork
I should also mention that I recently updated my code to use multiple controllers. On Monday, February 6, 2017 at 7:53:20 AM UTC-8, MarkEdson AtWork wrote: > > Update, > I ran the sample code I placed in this post over the weekend and it ended > up consuming 1.8GB before python stopped function

[web2py] Re: Payment gateway working app using AuthorizNet

2017-02-06 Thread Ron Chatterjee
There seem to be some bug or something because I implemented it and the payment didn't go through . Any doc to support the module? On Tuesday, January 31, 2017 at 8:56:41 PM UTC-5, Massimo Di Pierro wrote: > > There is an example in gluon/contrib/AuthorizeNet.py but I do not think > anybody used

[web2py] Re: japronto

2017-02-06 Thread Ron Chatterjee
Why can't we make web2py faster ? On Thursday, February 2, 2017 at 9:36:34 AM UTC-5, mcm wrote: > > > I agree nice and could be useful in speedy services and we should see if > it can be used in front of web2py. > > But it is more important for the long term that we start to think about > levera

[web2py] Re: SQLite lock (using DAL in a module)

2017-02-06 Thread MarkEdson AtWork
Also consider that every time any http request is made that all of your modules will be loaded. It may be helpful to use cache.ram to store your database connection so you can re-use it rather than creating a new connection to the database on each request. something like... self.dal_db = cache

[web2py] Re: memory leak - model remains in memory after requests

2017-02-06 Thread MarkEdson AtWork
Update, I ran the sample code I placed in this post over the weekend and it ended up consuming 1.8GB before python stopped functioning. I am running pyDAL (17.1) with a stable web2py release. Is this the built-in Rocket server issue I have run into? On Friday, December 24, 2010 at 4:16:24 PM UTC

Re: [web2py] SQLite lock (using DAL in a module)

2017-02-06 Thread Michele Comitini
@Jesse SQLite has to be seen as a signle file storage. If you open in one process all other processes have to wait until the first process releases lock ownership. The best way to do that, is to put commit or rollback at the end of every access on the db. The code you posted does a single commit

[web2py] MULTIPLE APPLICATIONS IN SAME HOST/SUBDOMAINS WITH NGINX

2017-02-06 Thread Áureo Dias Neto
Hello guys, how i'm host more than one application, in the same server, with sub-domains on nginx? example: http://192.168.1.13/app1 -> 'app1' http://192.168.1.13/app2 -> 'app2' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source