問題:訪問http://127.0.0.1:8000/login/ 提示如下內容
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/login/
Using the URLconf defined in PythonProject.urls, Django tried these URL patterns, in this order:
1. ^media/(?P<path>.*)$
2. ^BookType/
3. ^Book/
4. ^ ^$ [name='index']
5. ^ ^frontLogin$ [name='frontLogin']
6. ^ ^frontLoginout$ [name='frontLoginout']
7. ^ ^login$ [name='login'] #<------按照邏輯應該這行匹配
8. ^ ^loginout$ [name='loginout']
9. ^ ^changePassword$ [name='changePassword']
10.^ ^main$ [name='main']
11.^tinymce/
The current path, login/, didn’t match any of these.
初步分析:訪問路徑中的login和系統中列出來的7行應該匹配成功,為什么系統報錯?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/282760.html
上一篇:在mt4市場中開發者tipu開發的stoch這個指標,求解鎖
下一篇:python求助2
