Actually, that was the example I tried following. I still have
previous tables from the wizard generator the first time around I
tried to actually create them.
So, I inserted the example into the models/db.py, saved and go to
database administration, but it still shows the previous tables
Placing that in the controller, and letting it go free.
Did you try to place the code into a model? I guess you cannot create
table in a controller.
Another thing that you could try out is the table wizard that comes
with pyMantis, an app that I just entered into the web2py application
exibition.
I suggest you to have a look there :
http://web2py.com/examples/default/examples
= go to example 29
Your first try is a bit 'curious' and I dont think it this what you
want to do.
Another easy way to experiment web2py is using the wizard:
_ Launch the wizard
_ Create tables (read the comments)
_
3 matches
Mail list logo