Skip to content Skip to sidebar Skip to footer

Django App On Heroku Deletes Objects After Some Time

I've written a simple Django Q&A forum app and deployed it on Heroku. The local version of the site works fine. However, the production version does not store the questions, an

Solution 1:

Heroku's filesystem is ephemeral. Anything you write to it will be lost anytime your dyno restarts, which happens frequently. Since SQLite stores its data in a file on the filesystem it isn't a good choice on Heroku.

Instead, consider using one of the many client-server data stores that Heroku supports. Its PostgreSQL offering works reasonably well.


Post a Comment for "Django App On Heroku Deletes Objects After Some Time"