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 in; but seems like the data is lost?

What am I doing wrong?

Thanks.


Reply via email to