2018年1月8日

AttributeError: 'Comment' object has no attribute '_state'

摘要: AttributeError: 'Comment' object has no attribute '_state' 错误编写__init__():函数造成的错误。 阅读全文

posted @ 2018-01-08 16:34 为数不多的那几年 阅读(489) 评论(0) 推荐(0) 编辑

2018年1月6日

报错信息:NoReverseMatch at / 'blog' is not a registered namespace

摘要: NoReverseMatch at / 阅读全文

posted @ 2018-01-06 16:00 为数不多的那几年 阅读(4100) 评论(1) 推荐(2) 编辑

报错信息:django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with keyword arguments '{'pk': 4}' not found. 1 pattern(s) tried: ['post/(?P<pk>[0-9]+/$)']

摘要: django.urls.exceptions.NoReverseMatch: Reverse for 'detail' with keyword arguments '{'pk': 4}' not found. 1 pattern(s) tried: ['post/(?P<pk>[0-9]+/$)' 阅读全文

posted @ 2018-01-06 15:58 为数不多的那几年 阅读(1051) 评论(0) 推荐(0) 编辑

导航