How to deploy a finished project with sqlite3 database from django to postgresql?

I read Deploy a Django App on Render – Render Docs. But I have some question.

If I have a project that has already been migrated to SQLITE3, how do I deploy it on a postgresql basis? Can I deploy it on SQLITE3 as well?

If I follow above guide verbatim, will I be automatically migrated to postgresql?

Hi there,

The tutorial does not include a step to move data from an existing database to Postgres. You would need to write that migration yourself.

You’re welcome to run your service with SQLite3. You would just need to add a persistent disk to your service, put your database file on the disk, and finally ensure your SQLite3 connection is referencing the database file on the disk’s mount path.

Regards,

Matt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.