[Django]-Docker error using python 3.7: Generator expression must be parenthesized

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.

Leave a comment