Heroku: Django database file lost on every dyno restart

There is nothing you can do about this, short of storing the database on some other service like Amazon S3. Heroku has ephemeral storage: https://devcenter.heroku.com/articles/sqlite3#disk-backed-storage

However, Heroku also comes with free persistent PostgreSQL. So I would advice you to use that instead.

Leave a Comment