project 下的url:
#机构首页
url(r'^org/', include('organization.urls',namespace='org')),
organization 下的url:
url(r'^list/$', OrgView.as_view(), name='org_list'),
org-list.html继承了base.html
base.html中的“授课机构”链接:
<li class="active" ><a href="{% url 'org:org_list' %}">授课机构</a></li>
但在点击之后却找不到页面:
Page not found (404)
Request Method:
GET
Request URL:
http://127.0.0.1:8000/org-list.html
Using the URLconf defined in Mukeo.urls, Django tried these URL patterns, in this order:
^xadmin/
^$ [name='index']
^login/$ [name='login']
^register/$ [name='register']
^captcha/
^active/(?P<active_code>.*)/$ [name='user_active']
^forget/$ [name='forget_pwd']
^reset/(?P<active_code>.*)/$ [name='reset_pwd']
^modify_pwd/$ [name='modify_pwd']
^org/
^media/(?P<path>.*)$
The current path, org-list.html, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
看了好几遍也不知道哪里出了问题,求解决