最赞回答 / qq_最聪明的猪宝宝_0
修改部分如下:urls.py:urlpatterns = [path('', views.index,name='index'),path('artile/<int:artile_id>/', views.artile_page,name='artile_page'),path('edit',views.edit_page,name='edit_page'),path('edit/action',views.edit_action,name='edit_action'),]views.py:1...
2018-07-19
已采纳回答 / swordboyly
index的方法错了,return改为:return render(request,'blog/index.html',{'articles',articles}
2018-07-19