skip to Main Content

I’m quite new to Django.
I’m building a Django app and want to deploy it to Heroku with Postgres database.
I already installed a Postgres app on Heroku, and have my credentials.

Should I have two databases – one Postgres database with its own settings locally for dev, and one that is on Heroku?

The app is quite simple, so I don’t necessarily need two databases, but maybe it is needed for deployment.

2

Answers


  1. Chosen as BEST ANSWER

    The solution is simple - I'll use sqlite for dev environment, and postgres for prod - and which would be deployed to Heroku.

    Heroku doesn't allow to use sqlite.


  2. No matter how simple the app is – NEVER mix dev and prod databases.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search