PythonBulawayo/ChitChat
Add a commands to create and apply migrations in the API docker container
开放
#41 创建于 2024年2月14日
backendgood first issuegood first task
仓库指标
- 星标
- (25 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
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