PythonBulawayo / ChitChat

23 stars 25 forks source link

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

Open terrameijar opened 8 months ago

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