最赞回答 / 慕粉4154810
from django.contrib import admin # Register your models here. from .models import Article admin.site.register(Article)这么写
2018-08-14
已采纳回答 / 199532
return render(request, 'artical_page.html', {'artical':artical}你第三章图的article_detail()函数中的return 有问题,你忘记写“.html"了。
2018-08-14
最新回答 / syblogs
你的urls.py中配置了吗? url('^edit_action/$', views.edit_action, name='edit_action'),
2018-08-12
最新回答 / jamsonwoo
url(r'^article/(?P<article_id>[0-9]+)$', views.article_page, name="article_page"), name 属性没有设置吧
2018-08-10