Open terrameijar opened 9 months ago
Docker doesn't create a database when it first starts. This leads to database or " no such table" errors when you start the backend service.
Add the following commands to the Dockerfile in backend folder to make and apply database migrations:
Dockerfile
backend
python manage.py makemigrations python manage.py migrate
python manage.py makemigrations
python manage.py migrate
Docker doesn't create a database when it first starts. This leads to database or " no such table" errors when you start the backend service.
Add the following commands to the
Dockerfile
inbackend
folder to make and apply database migrations:python manage.py makemigrations
python manage.py migrate