我是django的新手,我需要一些帮助来解决这个问题。我收到了error NoReverseMatch, django.urls.exceptions.NoReverseMatch: Reverse for 'blog_details' with keywordarguments '{'slug': 'Cybercrime-Could-Cost-the-World-$10.5-Trillion-Annually-by-2025-
在django 1.3中使用和引用slugfield的正确方法是什么
例如,下面的代码应该通过slug链接到一个通用视图,但是会收到NoReverseMatch错误。Caught NoReverseMatch while rendering: Reverse for 'single_post' with arguments '('', u'post-2')' and有没有人能解释一下为什么会发生这种情况,这样我就能明白问题出在
\urls\resolvers.py", line 677, in _reverse_with_prefixdjango.urls.exceptions.NoReverseMatch): return render(request, 'detail_blog.html',= slugify(instanc