【发布时间】:2017-10-04 09:51:02
【问题描述】:
我正在关注 Django TDD 教程:
http://www.marinamele.com/taskbuster-django-tutorial/taskbuster-working-environment-and-start-django-project
在我启动开发服务器 'python manage.py runserver' 之前和之后运行 'all_users.py' 时出现以下错误:
Traceback(最近一次调用最后一次): 文件“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 行,在 get 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 引发异常类(消息、屏幕、堆栈跟踪) selenium.common.exceptions.WebDriverException:消息:到达错误页面:>about:neterror?e=connectionFailure&u=http%3A//localhost%3A8000/&c=UTF->8&f=regular&d=Firefox%20can%E2%80%99t %20建立%20a%20连接%20to%20the%20s>erver%20at%20localhost%3A8000。
基本上无法建立到本地主机的连接。
设置和配置与上一个链接中的教程相同。
我已经为这个问题苦苦挣扎了两天,如果您能提供任何帮助,我将非常感谢您。
【问题讨论】:
标签: firefox selenium-webdriver python-3.6 django-1.8