You forgot db.commit() before exit.
See http://web2py.com/book/default/chapter/06#commit-and-rollback
--
Vinicius Assef.
On Tue, Jan 25, 2011 at 8:04 PM, David J. wrote:
> I am trying to add objects from the shell
>
> The objects are static so I didnt feel the need to make any web interface
>
I am trying to add objects from the shell
The objects are static so I didnt feel the need to make any web
interface for it;
python ./web2py.py -S app -M -P
Interactive shell>>
db.numbers.insert(number='100');
1
db.numbers(0).number
100
This all works;
I exit out of shell and then go back i
2 matches
Mail list logo