我在下面一个Django TDD教程:
http://www.marinamele.com/taskbuster-django-tutorial/taskbuster-working-environment-and-start-django-project
之前和之后运行“all_users.py”时,我得到了下面的错误,我开始开发服务器“蟒蛇管理。 PY的runserver ':硒WebDriverException:达到错误页
回溯(最近通话最后一个): 文件 “functional_tests/all_users.py”,第15行,在test_it_worked self.browser.get(' http://localhost:8000“) 文件“/Users/samgao/.virtualenvs/tb_test/lib/python3.6/site->packages/selenium/webdriver/remote/webdriver.py”,第264行,获得 self.execute(Command.GET,{ 'url':url}) 文件“/Users/samgao/.virtualenvs/tb_test/lib/python3.6/site->packages/selenium/webdriver/remote/webdriver.py”,第252行,执行 self。 error_handler.check_response(响应) 文件“/Users/samgao/.virtualenvs/tb_test/lib/python3.6/site->packages/selenium/webdriver/remote/errorhandler.py”,第194行,在check_response中 raise exception_class(消息:screen,stacktrace) selenium.common.exceptions.WebDriverException:消息:到达错误页面:> about:neterror?e = connectionFailure & u = http%3A // localhost%3A8000/& c = UTF-> 8 & f =常规& d = Firefox%20can%E2%80%99t%20stablish%20a%20connection%20to%20the%20s> erver%20at%20localhost%3A8000。
基本上无法建立到本地主机的连接。
设置和配置与上一个链接中的教程相同。
我一直在为这个问题挣扎两天,如果你能提供任何帮助,我会非常感谢你。