If you access http://0.0.0.0:8000 through your browser, it is possible that your browser uses HTTPS protocol by default, and actually your request is https://0.0.0.0:8000 . And your development server only supports HTTP protocol, which leads to the request error