8👍
✅
First sudo service docker restart
And in your Dockerfile
FROM python:3.6
then sudo docker-compose up --build
or
sudo docker-compose run web python manage.py migrate
and sudo docker-compose up --build
3👍
Update your Django version in requirements.txt file from Django>=1.8,<2.0 to Django==2.1.1
Run your image with rebuild by “docker-compose up –build” it will solve your problem.
- [Django]-Deploying django app with heroku — gunicorn not installing
- [Django]-Django Test Runner can't find tests
- [Django]-Server lagging – Django + mongodb + cronjob
Source:stackexchange.com