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.
__
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
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
3 matches
Mail list logo