[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-02-05 Thread Ivan P
, Adi wrote: > Hi Ivan, > > I followed this howto, and when I try to access the application I get > an internal error thrown by web2py: > Ticket issued: unknown > > Any idea how to read contents of this ticket to debug? > > On Jan 15, 3:14 am, Ivan P wrote: > > &g

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-03-01 Thread Ivan P
directory, and it owns everything. With Apache I have to chown/mod the > > > files so that www-data can read them. > > > > I need to use a user account instead of www-data since mercurial is > > > involved. > > > > As far as static file streaming, doescherok

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-03-01 Thread Ivan P
Make that rule "^/app/static" On Mar 2, 1:29 am, Ivan P wrote: > Could you elaborate? You want those two rules to point to a static > folder? > If that is the case, you would probably add a new regex rule with > something like "^/app/static$", and add a "st

[web2py] uWSGI + Cherokee + web2py - a howto.

2010-01-14 Thread Ivan P
Inspired by Phyo Arkar's howto on setting up web2py with Cherokee and FCGI I tried the setup, but was somewhat unsatisfied with the fcgi method and decided to try uWSGI. I am happy I did so, since it proved to be real easy and uWSGI is a real powerhouse and deserves attention of the whole python we

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-17 Thread Ivan P
mdipierro: It works. Running http://localhost/admin/default/site all the CSS, images and scripts are loaded fine. On Jan 17, 11:13 pm, mdipierro wrote: > Have you tried if web2py file streaming works with cherokee? > > On Jan 14, 4:14 pm, Ivan P wrote: > > > Inspired by Phy

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-17 Thread Ivan P
t; I'll give it a try... have you noticed any improvements with cherokee? > could you show us your "ab" benchmarks? > > regards, > Alex F > > P.S: try to make an slice in web2pyslices.com > > El 14/01/2010 23:14, Ivan P escribi : > > > > > Inspi

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-18 Thread Ivan P
tely on every request so there is no concurrency. > > > I think we need a standard app for testing with various options: > > > 1) db, no-db > > 2) 1,10,100 tables > > 3) view, no-view > > 4) compiled, not-compiler > > > On Jan 17, 2:49 pm, Ivan P wrote:

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-18 Thread Ivan P
s. > > On Jan 18, 2:14 am, Ivan P wrote: > > > Hmmm, you are right. But, since I was loading the index page of the > > standard admin interface, that I have not compiled, I guess it is > > whatever the admin defaults are (does admin even use a db?). Right? > > &g

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-01-18 Thread Ivan P
I would expect. Is this bytecode compiled? It > makes a difference. > > On Jan 18, 10:15 am, Ivan P wrote: > > > OK, I had some flaws in the last test that, I have realized, were > > affecting the performance. For example uwsgi was outputing a whole lot > > of data in

[web2py] Auth default controller annoyance

2010-01-19 Thread Ivan P
This is fairly minor problem, but seems to go against the web2py philosophy as I see it. If after initializing the Auth object you would like to change the default controller, you must redefine a bunch of variables: self.settings.login_url, self.settings.logged_url, self.settings.download_url, etc.

[web2py] Re: Newbie Question: Intellisense for Web2Py?

2010-01-20 Thread Ivan P
While completion is nice, I think that what seems like a steep learning curve is actually not that much. You mostly use a few of the framework functions and variables, unless you adding something new to your project, like authentication or maybe a new table. So I'd say that you don't need it. And i

[web2py] "duplicate column name" error

2010-01-20 Thread Ivan P
I am encountering a strange error, and was wondering if anybody else has seen something like it. The code: auth.settings.table_user = db.define_table( auth.settings.table_user_name, Field('username', length=32, notnull=True, unique=True, requires = [IS_LENGTH(minsize=3), IS_NOT

[web2py] Re: "duplicate column name" error

2010-01-20 Thread Ivan P
name. On Jan 20, 3:03 pm, Ivan P wrote: > I am encountering a strange error, and was wondering if anybody else > has seen something like it. > The code: > auth.settings.table_user = db.define_table( >     auth.settings.table_user_name, >     Field('username'

[web2py] Re: Cherokee problem

2010-01-21 Thread Ivan P
Johann, mdipierro is correct in saying that setting up web2py with cherokee, for example, is no different than setting up any other framework, there are not many options for framework-server integration. A couple of weeks ago I was also very frustrated with setting up a production server, but was a

[web2py] Re: Cherokee problem

2010-01-21 Thread Ivan P
Although, I take my words back. My way is not the simplest. =) But it is not hard at all and is powerful. On Jan 20, 6:43 pm, Johann Spies wrote: > As I am unable to get a solution to my problems serving web2py using > apache alongside other sites I am trying out Cherokee - so far with no > succe