Hello,
I tried to deploy using the docker-compose method you detail.
I configured my .env file with:
DJANGO_ALLOWED_HOSTS=['127.0.0.1']
but then when I try to visit http://127.0.0.1:8079, I get a 400 level error, and the following in the docker logs:
ERROR 2020-09-14 17:59:00,229 exception 16 140629607933760 Invalid HTTP_HOST header: '127.0.0.1:8079'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.
I tried adding 127.0.0.1:8079 there, but that didn't work.
thought the problem might have been the port, so I tried to change the port in the docker-compose.yml to just map 80, but I still get this:
ERROR 2020-09-14 18:04:28,490 exception 17 140046465333056 Invalid HTTP_HOST header: '127.0.0.1'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.
Hello,
I tried to deploy using the docker-compose method you detail.
I configured my
.envfile with:DJANGO_ALLOWED_HOSTS=['127.0.0.1']
but then when I try to visit http://127.0.0.1:8079, I get a 400 level error, and the following in the docker logs:
ERROR 2020-09-14 17:59:00,229 exception 16 140629607933760 Invalid HTTP_HOST header: '127.0.0.1:8079'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.I tried adding
127.0.0.1:8079there, but that didn't work.thought the problem might have been the port, so I tried to change the port in the docker-compose.yml to just map 80, but I still get this:
ERROR 2020-09-14 18:04:28,490 exception 17 140046465333056 Invalid HTTP_HOST header: '127.0.0.1'. You may need to add '127.0.0.1' to ALLOWED_HOSTS.