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 12:06 AM, [email protected] < [email protected]> wrote: > 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 > _____________________________________________ > *Gilson Filho* > *Web Developer > http://gilsondev.com* > >

