dockerizing-django
dockerizing-django copied to clipboard
How do I run database migrations after model changes?
Thanks for this tutorial! It's very helpful.
I can't figure out how to successfully run database migration after making small changes to the model though. I put details of what I tried on this StackOverflow post. Could anyone here help me out with this? Thanks in advance!
- Select the docker-machine you want to run the migrations on:
eval $(docker-machine env name-of-your-machine) docker-compose exec web python web/manage.py makemigrationsdocker-compose exec web python web/manage.py migrate