'how to persist sqlite3 DB data in heroku django application [duplicate]

This app is a django web site. I inserted a record using django admin function from admin web page. After inserting, I closed the admin web page, and I could see the record shown on the normal web page. But after one hour later, the record disappeared (I could not see in my normal web page and admin web page when I browsed again.). I upgraded this app(c9-django-mblog-ho) and another app(django-mblog-ho) from heroku-16 to heroku-20 yesterday(2022-4-19 08:00 UTC+8 Asia Taipei time). Both app have the same problem. I did not have the problem on heroku-16 stack. Please help me to solve the problem: Keep sqlite3 DB data persistent! Thank you very much!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source