Python 在Django上找不到页面-空路径

Python 在Django上找不到页面-空路径,python,django,two-factor-authentication,Python,Django,Two Factor Authentication,我想跑。我在桌面上下载并复制了它,然后我尝试使用以下工具运行它: py -3.7 manage.py runserver 我得到: Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. 但是,当我转到该url时,我不断收到以下错误: Page not found (404) Request Method: GET Request URL: http://127.0.0

我想跑。我在桌面上下载并复制了它,然后我尝试使用以下工具运行它:

py -3.7 manage.py runserver
我得到:

Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
但是,当我转到该url时,我不断收到以下错误:

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in django_google_authenticator.urls, Django tried these URL patterns, in this order:

^admin/login/$
^admin/
The empty path didn't match any of these.

我不明白怎么了,有人能帮我吗?提前谢谢

我认为这是Django的正常行为,正如您可以看到的,它是说您的路径与任何配置的路径都不匹配,比如admin,那么您为什么不试试
http://127.0.0.1:8000/admin/
访问Django管理员登录页面

如果你想通过基本url看到与404不同的东西,你需要添加一个重定向视图,这样当使用基本url时,它将重定向到你的管理员或其他首选页面