Thanks for the reply. But then how do i do interactive debug of the web2py objects from the shell...? If I can either have the shell or the webserver running, but not both, then what if i want to run my application and then access the web2py objects in real time from the shell to know its state. ? By the way, what makes it more interesting to learn web2py is this support from others .... Thanks a lot.
Regards, Bhaskar On Sunday, December 16, 2012 9:06:30 PM UTC-6, Massimo Di Pierro wrote: > > As you say -S <appname> starts the shell but not the web server. Without > -S it starts the web server. > The reason is that you may want one without the other. > > > On Sunday, 16 December 2012 14:38:53 UTC-6, Bhaskar Ramachandran wrote: >> >> I am new to web2py but very excited to learn and use it on a long term >> from now. >> I am having trouble starting an interactive shell (I am using Windows 7 >> OS and have installed python2.5 and pywin32 but not ipython as i don't want >> ipython shell). >> I have the latest web2py source copied to C:\. >> >> C:\web2py>python web2py.py -S welcome -M >> Sorry, -K only supported for python 2.6-2.7 >> web2py Web Framework >> Created by Massimo Di Pierro, Copyright 2007-2012 >> Version 2.3.1 (2012-12-14 15:24:12) stable >> Database drivers available: SQLite(sqlite3), MySQL(pymysql), >> PostgreSQL(pg8000), IMAP(imaplib) >> WARNING:web2py:import IPython error; use default python shell >> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] >> on win32 >> Type "help", "copyright", "credits" or "license" for more information. >> (InteractiveConsole) >> >>> >> >> I get the shell but it does not start the browser. Even if i start the >> browser and enter http://127.0.0.1:8000/welcome/default/index it >> doesn't work. >> But if i try a non-interactive shell such as the following, i am able to >> start the server and see the welcome page... >> >> C:\web2py>python web2py.py >> Sorry, -K only supported for python 2.6-2.7 >> web2py Web Framework >> Created by Massimo Di Pierro, Copyright 2007-2012 >> Version 2.3.1 (2012-12-14 15:24:12) stable >> Database drivers available: SQLite(sqlite3), MySQL(pymysql), >> PostgreSQL(pg8000), IMAP(imaplib) >> ------ >> I get the pop up window to enter admin password and start the server and >> everything works except an interactive shell... >> >> Please help. >> Thank you >> Bhaskar >> >> >> >> >> >> --

