You welcome. Just use uWSGI as web server and you will believe in magic :) .
Nginx will not necessary for your setup , yet.
On Sat, Oct 25, 2014 at 3:41 AM, Bilal El bilal...@gmail.com wrote:
Thanks Phyo!
I didn't knew that web2py was built on Rocket for the developpement
environnement.
A fix for what? It works perfectly fine in my apps.
--
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
Hi,
How do I make session cookies persistent, so that a session is continued
when a user closes their browser and re-opens it again?
I've tried putting this in the first line of a controller function:
response.cookies[response.session_id_name]['expires'] = 24 * 3600
When I inspect the session
I'm using web2py 2.9.5-stable+timestamp.2014.03.15.21.24.06 in a Linode [1]
server (a VPS with 4 cores, 4gbs of ram, and SSD storage).
The server uses Ubuntu server 12.04, and there I have multiple instances of
web2py running with lighttpd and python flup [2].
Those multiple instances of web2py
Thanks Derek,
But seems this bug in the url you`d posted is related to ftplib and in my
case there are no connections to ftp`s or any other network socket.
It is only a web2py running local... and seems there are some limitations
on the response size before it is sent to browser, some rocket
You can try going to gluon/rocket.py find:
SOCKET_TIMEOUT = 10 # in secs
Increase it substantially, say 180. Restart web2py, does it work?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Set the expiration in a model file - that will affect all requests.
--
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
Hello!
How can I to save fields in uppercase mode using SQL Server? I know that
the DAL have the upper() method, but I don't understand how can I to use it.
Regards.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
The upper method in SQL (and the DAL) is mainly to sort things without
considering case, basically it's a transformation you do to retrieved data.
You can use requires=IS_UPPER() in the field and that will convert things
to uppercase, would this be enough?
I probably wouldn't do it anyway,
Perfect. Thank you!
On Tuesday, October 28, 2014 4:49:22 PM UTC, Toby wrote:
Hi,
How do I make session cookies persistent, so that a session is continued
when a user closes their browser and re-opens it again?
I've tried putting this in the first line of a controller function:
I've looked at other bugs similar to this one, and one reports that on
32-bit Python, 2gb seems to be the largest amount of data you can send in
one sendall.
On Tuesday, October 28, 2014 10:35:10 AM UTC-7, André Kablu wrote:
Thanks Derek,
But seems this bug in the url you`d posted is
theoretically a db = DAL(, pool_size=5) will create AT MOST 5
connections to that db. you have 20, so any app's instance will create AT
MOST 20 connections to the db. if you postgres accepts AT MOST 50
connections, you'll reach the top at 2 apps and a half. As for the ram
consumed by
I'll revise this and provide (hopefully) something automatic to let this
work without too much configuration. Then we can test it and update the
relevant section of the book that needs a serious update :P
On Tuesday, October 28, 2014 2:05:05 AM UTC+1, Tim Richardson wrote:
For sure we can
In any case, you may want to consider using servers other than Rocket.
Web2py comes with anyserver.py which you can use to run Web2Py under
Cherrypy, or many other different servers. Give 'CherryPy' a try and see if
that alleviates your problems.
On Tuesday, October 28, 2014 12:54:26 PM UTC-7,
Thanks, now I understand, the error was probably caused by a wrong
configuration, because I had almost 10 websites connecting with
pool_size=20, and the postgresql server was limited to 50 max_connections.
Now I changed the values and it's working better.
In addition, I've been reading a lot
And after more investigation, it could be your build of python... there's a
lot of reading, but it comes down to a broken 'poll' on osx, and suggests
compiling a python interpreter that doesn't use it.
https://bitbucket.org/cherrypy/cherrypy/issue/598
On Tuesday, October 28, 2014 1:03:18 PM
ok, some problems arise.
We can either go with a default script a-la
setup-web2py-nginx-uwsgi-ubuntu.sh that takes a freshly machine devoted
to web2py and does everything or with something else.
Unfortunately the let's spin up a free VM to host web2py doesn't really
match web2py's user-case in
Store your sessions in cookies?
To *store sessions in cookies* instead you can do:
session.connect(request,response,cookie_key='yoursecret',compression_level=None)
Here cookie_key is a symmetric encryption key. compression_level is an
optional zlib encryption level.
While sessions in cookie
So, I've tried those instructions, stumbled and tripped and fell and gave
up. I tried to stick with official python.org binaries, and ran into some
issues. i then installed python 2.7.3 via the microsoft installer, and it
installs, but puts it in python27_x86 which screws up all your installed
It seems changing SOCKET_TIMEOUT does not help too...
It is not the first issue I found on running it on MAC OSX.
Well I will try to run it out on a linux server and see what happens...
I appreciate very much all your help!
Thanks
On Tuesday, October 28, 2014 7:44:38 PM UTC-2, Derek wrote:
In my case, I use activestate python 32 bit. Nothing from microsoft except
for the one script wfastcgi.py.
On Wednesday, October 29, 2014 10:00:38 AM UTC+11, Derek wrote:
So, I've tried those instructions, stumbled and tripped and fell and gave
up. I tried to stick with official python.org
If you want to send email from a google apps domain and you have admin
access, this gist may be interesting.
It's a REST api so non-blocking, in case you don't want to despatch email
sends to the scheduler.
You need to register a project at Google Developer Console, get a client ID
and key
22 matches
Mail list logo