Can you explain what you experience? Get a ticket? Data is not inserted? Data is inserted and disappears? Do you have more than one database?
Have you tried replace name=None with name="...." the database name assigned by heroku? Massimo On Sunday, 21 April 2013 18:49:28 UTC-5, Vixus wrote: > > My app is deployed on Heroku using the PostgreSQL db. No issues with > running the app, everything seems to be working. > Except for the following: I have some initial data that is entered when my > database is initialised (ie. when all the tables are empty). This code is > in a model and basically is: > > if db(db.table).isempty(): > db.table.insert(field1=bla, field2=bla) > db.commit() > > This worked fine when I was using sqlite testing locally but now on heroku > it doesn't work anymore. Why is this? > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.