vintasoftware / django-react-boilerplate

Django 5, React, Bootstrap 5 with Python 3 and Webpack project boilerplate
MIT License
1.97k stars 479 forks source link

Update project to use PostgreSQL locally with Docker #548

Closed rvlb closed 3 years ago

rvlb commented 3 years ago

Description

Currently Docker-setup users won't have access to the Postgres database locally by default (even though the docker-compose setup may give a different impression), they will still use SQLite3 by default. In production (i.e.: Heroku) these users will probably use Postgres, so it's important to keep settings consistent everywhere.

Setting up the container and the volumes can be a bit tricky, so it's important to have this support out of the box.

We'll keep SQLite3 as an option for non-Docker users who don't want to spend much time configuring their databases for small projects, although it's highly recommended for everyone to use the Docker setup since it requires less configuring.

Motivation and Context

Screenshots (if appropriate):

Steps to reproduce (if appropriate):

Types of changes

Checklist: