We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before running: /usr/local/bin/python manage.py migrate
/usr/local/bin/python manage.py migrate
it's necessary to run: /usr/local/bin/python manage.py makemigrations todo
/usr/local/bin/python manage.py makemigrations todo
to make initial migrations for todo app itself. Otherwise model Item won't be created and app won't start.
And exec should be used instead of run in both cases: docker-compose exec web /usr/local/bin/python manage.py migrate
docker-compose exec web /usr/local/bin/python manage.py migrate
It makes sense to add these commands to sh script and run it as an entrypoint for the web container.
Fill free to assign it to me if you want me to pr).
The text was updated successfully, but these errors were encountered:
Thank's @glebmikha, that helped me as well!
Sorry, something went wrong.
Needed this, Very Nice! Thanks. Good to know how to build individual migrations too
No branches or pull requests
Before running:
/usr/local/bin/python manage.py migrate
it's necessary to run:
/usr/local/bin/python manage.py makemigrations todo
to make initial migrations for todo app itself. Otherwise model Item won't be created and app won't start.
And exec should be used instead of run in both cases:
docker-compose exec web /usr/local/bin/python manage.py migrate
It makes sense to add these commands to sh script and run it as an entrypoint for the web container.
Fill free to assign it to me if you want me to pr).
The text was updated successfully, but these errors were encountered: