我在网络中有一个名为postgis-container的容器: awm。在我运行之后: python manage.py makemigrations 我得到了错误: django.db.utils.OperationalError: could not translatehost name "postgis-container" to address: Temporary failure in name resolution 我的讲师告诉我在我的settings.py"] = "localhost
server closed the connection unexpectedly before or while processing the request. 当我使用docker exec运行时... psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated w
我想要将主机名(computer name My Computer ->property -> Advance Setting ->computer Name)转换为IP地址。有什么方法可以将主机名转换为IP地址吗?我尝试过跟随,但是pHostInfo显示为空。主机名是我的计算机名。你能给我把主机名转换成IP地址的代码吗?