PythonBulawayo/ChitChat

Add a commands to create and apply migrations in the API docker container

Open

#41 opened on Feb 14, 2024

 (0 comments) (0 reactions) (0 assignees)TypeScript (24 forks)auto 404
backendgood first issuegood first task

Repository metrics

Stars
 (25 stars)
PR merge metrics
 (PR metrics pending)

Description

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:

python manage.py makemigrations python manage.py migrate

Contributor guide