最赞回答 / Leon_Wang0912
from django.urls import path, re_path from . import views urlpatterns = [ path('index/', views.index), re_path(r'^article/(?P&0-9article_id&ws.[0-9]+)/$', views.article_page), # 方法1 # re_path(r'^article/(\...
2020-03-14
最新回答 / Dreamosky
当有多条记录时,要一行一行的读出来.再分开取值{% for x in aricle %} {{x.id}} {{x.title}} {{x.content}} {% endfor %}
2020-03-10