get() got an unexpected keyword argument

 

 

TypeError: get() got an unexpected keyword argument 'news_id'
ERROR basehttp 154 "GET /news/3/ HTTP/1.1" 500 70524

 

 

    原因           Url                           和            .     视图               不对头......

path('news/<int:news_id>/', views.NewDetail.as_view(), name='news_detail'),

posted on 2019-04-29 17:53  卓达  阅读(21384)  评论(1编辑  收藏  举报

导航