Reverse for 'home' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'org/home/(?P<org_id>\\d+)/$']
url配置
url(r'^home/(?P<org_id>\d+)/$',OrgHomeView.as_view(),name="home"),
url(r'^course/(?P<org_id>\d+)/$',OrgCourseView.as_view(),name="orgCourse")
org_base.html中链接配置:
<li class="active2"><a href={% url 'org:home' organization.id %}>机构首页</a></li>
<li class=""><a href="{% url 'org:orgCourse' organization.id %}">机构课程</a></li>