PythonBulawayo / ChitChat

MIT License
24 stars 28 forks source link

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

Open terrameijar opened 9 months ago

terrameijar commented 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:

python manage.py makemigrations python manage.py migrate