我一直在遵循tom artyn的这篇教程。 我的代码与书中的一模一样,然而,每次我试图在本地主机服务器上呈现我的网页时,我总是得到page not found (404)错误。以下是我的项目(配置) url: from django.urls import path, include path('', incl
因此,例如,当我在容器中运行脚本时,requests.get("http//:host.docker.internal:8000")会收到一个错误
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /