Docker-compose with django could not translate host name “db” to address: Name or service not known

后端 未结 4 788
情书的邮戳
情书的邮戳 2020-12-10 01:57

I have currently a system built with docker-compose, it creates a Django application.

Up until now I\'ve used a database inside a container (postgresql) in my testin

4条回答
  •  猫巷女王i
    2020-12-10 02:57

    Answering my question, this was a stupid one...

    My manage.py was selecting only the base.py settings file, and was not taking into account the staging.py settings file. So it was breaking in the CLI and was not breaking inside the app.

提交回复
热议问题