Even my contoller doesn't need a model? Is it documented?
What about the inability to create databases folder running Web2py shell? On Wed, May 1, 2013 at 11:29 PM, Anthony <abasta...@gmail.com> wrote: > If you specify a controller, it will automatically execute the models, even > if you don't include -M (assuming if you want to be in the environment of > the controller, you want the controller's usual environment, which includes > the models). > > Anthony > > > On Wednesday, May 1, 2013 9:58:55 PM UTC-4, viniciusban wrote: >> >> I'm trying to execute web2py with this command: >> $ python web2py.py -S bla/default/my >> >> If I run this command before executing the app via browser, I receive >> this following output: http://pastebin.com/ZC1DDEqK >> >> I get same result when I remove databases folder. So, the problem is >> the absense of databases folder. >> >> BTW, the default.py/my() function has just a return 'blabla' >> statement. It doesn't touch the db anyway. >> >> If I run: >> $ python web2py.py -S bla >> Web2py shell opens without problem. >> >> But when I run: >> $ python web2py.py -S bla -M >> I get the same result as the first scenario: db error. >> >> Now, my questions: >> 1) Why I'm getting these errors when I try to execute an a/c/f via >> web2py.py, even if not passing -M argument to web2py.py and a/c/f >> doesn't touch the db? >> >> 2) Why Web2py cannot create my databases folder when running shell? >> >> 3) What am I doing wrong? >> >> -- >> Vinicius Assef > > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.