python - django的代码,昨晚上还好好的,今天早上进不去管理界面了,怎么回事?谢谢。
阿神
阿神 2017-04-18 10:33:17
0
2
519

主url

就是连登陆界面都没有了,http://127.0.0.1:8001/admin/显示的是主页,也就是空的那个url指向的html页面。

阿神
阿神

闭关修行中......

reply all(2)
黄舟

When Django matches URLs, it matches them from top to bottom in the URL list
'' can match anything''能匹配任何东西
所以admin就无法访问了
在使用''So the admin cannot access

When using '' When matching a wide range of URL regular expressions, it is recommended to put it at the end of the URL list🎜
Peter_Zhu

In addition to the matching problem mentioned above
There is also a misunderstanding in the way you write the URL
Like your matchingindex的时候最好使用r'^$'
Generally, the more complex the URL, the higher it is placed

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!