最新回答 / 520o0o0o
因为你传了一个id过去,你查看一下你的views.py是不是有对应的操作,通过这个id获取了article这个对象,然后再返回给article_page.html。
2018-08-24
最新回答 / 520o0o0o
你是article_page,视频是edit_page,你查看一下你的article_page是不是设置接受了一个参数,但是你却没有写入,也就是你没有传入一个id。。
2018-08-24
最赞回答 / 慕田峪7139964
{'article':article} 中的‘article’是与index中的<h1>article.xxxx</h1>的article是同一个,后一个article是你之前所建的参数 article = models.Article.objects.get(pk=1)
2018-08-22
最赞回答 / qq_木鱼_14
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'blog', ]blog 没有注册
2018-08-21
最新回答 / 慕婉清8313533
This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.上面大致意思:import 不能识别自定义包...
2018-08-20