get() got an unexpected keyword argument

get() got an unexpected keyword argument_第1张图片

 

 

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

 

 

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

path('news//', views.NewDetail.as_view(), name='news_detail'),

转载于:https://www.cnblogs.com/crave/p/10791946.html

你可能感兴趣的:(python)