PythonBulawayo/ChitChat
Add a commands to create and apply migrations in the API docker container
Aperta
#41 aperta il 14 feb 2024
backendgood first issuegood first task
Metriche repository
- Star
- (25 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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