# Django Sqlite Database Getting Deleted when deployed

**URL:** <https://community.fly.io/t/django-sqlite-database-getting-deleted-when-deployed/17326>\
**Category:** Django\
**Tags:** django, sqlite, databases, volumes\
**Created:** [December 19, 2023, 6:22pm UTC](https://community.fly.io/t/django-sqlite-database-getting-deleted-when-deployed/17326 "2023-12-19T18:22:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![beecom](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@beecom](https://community.fly.io/u/beecom)\
**Post date:** [December 19, 2023, 6:22pm UTC](https://community.fly.io/t/django-sqlite-database-getting-deleted-when-deployed/17326/1 "2023-12-19T18:22:54Z")

</div>

So previously, on my other app when I deployed my django app to fly, it used to use the existing local sqlite db.

Now while working on a new app, after deployment the local db is not being used. I ran

> flyctl ssh console

& db.sqlite3 does exist in the file structure, but for some reason doesn’t use it anymore.

I am confused how two apps are working completely differently.

---

<div class="post-metadata">

**Author:** ![woodlandsquid](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/woodlandsquid/32/16162_2.png) [@woodlandsquid](https://community.fly.io/u/woodlandsquid)\
**Post date:** [December 24, 2023, 5:49pm UTC](https://community.fly.io/t/django-sqlite-database-getting-deleted-when-deployed/17326/2 "2023-12-24T17:49:49Z")

</div>

is your .dockerignore file filtering out your SQLite DB?
