[web2py] Enable and disable buttons

2011-08-13 Thread Michele Alzetta
I'm trying to make a web2py app in which users have to insert a lot of different types of data. Once all the data have been added the user should be able to click on a button to get the app to elaborate the data and produce the final output. What would be the simplest way to disable the button unt

Re: [web2py] Re: nginx with bultin uwsgi module

2011-03-18 Thread Michele Alzetta
On Thu, Mar 17, 2011 at 7:49 PM, pbreit wrote: > I just copied my parameters_8000.py to parameters_443.py > > I think it needs to be 443 since that's the https port. > > So: > > web2py$ cp parameters_8000.py parameters_443.py > That did it. I now have access to the administrative interface. With

[web2py] Re: nginx with bultin uwsgi module

2011-03-17 Thread Michele Alzetta
On 17 Mar, 18:47, Vasile Ermicioi wrote: > you need a parameters_9001.py file, you can create one by running web2py on > localhost > I renamed parameters_8000.py to parameters_#mypoort.py Thanks for the hint, tried it and it didn't work. Very strange

Re: [web2py] Re: nginx with bultin uwsgi module

2011-03-17 Thread Michele Alzetta
> > You can find web2py configuration example here: > > http://projects.unbit.it/uwsgi/wiki/Example#Web2Py2uWSGI > > I tried uwsgi + nginx + web2py and got everything working, including https, except for access to web2py administrative interface which is refused because - error message - the passw

Re: [web2py] Re: Lacking nginx deployment guide

2011-03-13 Thread Michele Alzetta
> If anyone has an tips, suggestions or corrections, please let me know. I am > relatively new to all of this. > Looks great. I'm almost tempted to try it myself ... but as at the moment my web2py is under no serious load I'll probably follow the "if it works, don't break it" philosophy :)

Re: [web2py] Lacking nginx deployment guide

2011-03-10 Thread Michele Alzetta
On Thu, Mar 10, 2011 at 12:09 AM, minux wrote: > > Cutting the long story short, I really appreciate it if someone could > point me to a complete guide for nginx deployment, or writhe one :) > I have web2py on a linode.com VPS deployed on nginx with ssl access so I can have access to administrat

[web2py] Init script for Web2Py

2010-10-10 Thread Michele Alzetta
Hello, I wonder if someone has created a "normal" initscript for Web2Py. For the moment I manage with the following hack, but it is not elegant and I would prefer something that integrates better with the rest of the system. My hack: start.sh ( in web2py directory ): -

Re: [web2py] Re: nginx with bultin uwsgi module

2010-10-10 Thread Michele Alzetta
I'm not sure I understand what the advantage of wsgi would be, in any case if somebody finds it useful here is the part of my nginx.conf with which I run web2py with https access on a remote server; if somebody could post instructions on running web2py through wsgi on nginx I would like to test the

Re: [web2py] Re: Newbie needs help

2010-08-22 Thread Michele Alzetta
On Sun, Aug 22, 2010 at 12:12 AM, mdipierro wrote: > My guess is that this is a problem with sqlite. You had the field, you > removed it (but sqlite does not support drop), then you put it back > (and web2py tried to define it again). > > Delete everything in applications//databases then run it >

[web2py] Newbie needs help

2010-08-21 Thread Michele Alzetta
Dear web2py-users, I tried to create the database schema of my application by adding the following code in db.py ; I am pasting the entire code, but in fact the problem appears already at the first table definition, because te ticket I get is the following: Traceback (most recent call last): Fi