Recognition

No awards yet.

Posts

2 Posts
  • Published Answer

    Django, React, Docker: Bad Request 400 when connecting to Django app.

    Here was the problem: Apparently using the .env file – even after placing print(ALLOWED_HOSTS) to ensure the host was …
    Accepted Answer: Here was the problem: Apparently using the .env file – even after placing print(ALLOWED_HOSTS) to ensure the host was …
    By jakuta
  • Published Question

    Django, React, Docker: Bad Request 400 when connecting to Django app.

    I am trying to set up a Django back-end, with a React front-end, both running inside a Docker container, using docker-compose to expose them at different ports (8000 for the Django app, 3000 for the React app. When I ...
    Accepted Answer: Here was the problem: Apparently using the .env file -- even after placing print(ALLOWED_HOSTS) to ensure the host was found -- does not actually work for some reason. I simply had to restore the ALLOWED_HOSTS setting...
    1 By jakuta Django React Docker