If they are contants I suggest you write them in a python file and import them.
If they must be in the database, use a script to import them and run it once python web2py.py -S yourapp -M -N -R yourscript.py On Wednesday, 8 August 2012 20:30:10 UTC-5, mrtn wrote: > > > Hi, > > I need to have a few rows of data in the database for configuration > purposes. I just need to set them once and forget about them, in some sense > that they are like 'constants'. > > What is the best approach to do this with web2py? Or should I just do it > completely separately from web2py, e.g. insert them using SQL command line > before I start the app? > > > --