PythonBulawayo/ChitChat

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

Aberta

#41 aberto em 14 de fev. de 2024

 (0 comentário) (0 reação) (0 responsável)TypeScript (24 forks)auto 404
backendgood first issuegood first task

Métricas do repositório

Stars
 (25 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador