1.单一路由对应 url(r'^index/', views.index), # FBV url(r'^home/', views.Home.as_view()), # CBV 2.基于正则的路由 url(r'^detail-(\d+).html', views.detail), url(^'^detail-(\d+)-(\d+).html',views.detail), ''' 严格按照位置参数的顺序传入参数,如果在实际环境中,def detail(request,nid,uid)在定义时,参…