最赞回答 / ukeedy
嗯
blog/urls.py还需要 import一下 re_pathfrom django.urls import path,re_pathre_path(r'^article/(?P<article_id>[0-9]+)$',views.article_page,name='article_id'),<...图片...>
2018-06-09
最新回答 / 林庭_snowfox_1992
<...图片...>这是提示错误信息
from django.shortcuts import render from django.http import HttpResponse from . import models # Create your views here. def index(request): articles = models.Article.objects.all() ...
2018-06-06