我的 google chrome 和 firefox 有问题(我仅有的 2 个浏览器)
当运行我的 django 服务器时./manage.py runserver 0.0.0.0:8000
,当我转到 chrome 或 firefox 并输入localhost:8000
chrome 时重定向到http://www.localhost:8000/
你知道是什么问题吗??
我的主机文件是:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost arch
127.0.0.1 example.com