The default works as long as you have only one DB, else it may randomly connect to one of the available and exhibit weird behavior.
On Monday, 22 April 2013 08:08:57 UTC-5, Vixus wrote: > > Ok, fixed after changing name to 'HEROKU_POSTGRESQL_AQUA_URL' > > On Monday, April 22, 2013 3:53:57 AM UTC+1, Massimo Di Pierro wrote: >> >> 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

