Re: [web2py] Create tables with models in subfolders

2011-06-12 Thread contatogilson...@gmail.com
Yes, I put them in a folder with the name of the driver, and ran from their URL. Only itis: the URL is overwritten on routes.py: (...) > (r'/suppliers', r'/app/suppliers/list'), But even so, he created the tables, only when played in the root of models. __

Re: [web2py] Create tables with models in subfolders

2011-06-11 Thread Bruno Rocha
Models on subfolders will run only if it matches the requested URL All models under /models/ will be executed on every request, but models under /models/tests/ will run only if your url matches http://domain:8000/yourapp/tests/ and if you have a controller named tests.py On Sun, Jun 12, 2011 at

[web2py] Create tables with models in subfolders

2011-06-11 Thread contatogilson...@gmail.com
When I put the scripts of a particular model in a subfolder, it does not create tables in the database when I run web2py. I have not disabled the migrate. By default it is not true? app/ models/ tests/ tests.py validators.py