reverse转换url为什么说没有匹配的结果
print(reverse('blog:article_page', kwargs={'article_id': article_id}))
这一句一直报错
NoReverseMatch at /blog/edit/action/
Reverse for 'article_page' with keyword arguments '{'article_id': '4'}' not found. 1 pattern(s) tried: ['blog/article_page/(?P<number>[0-9]+)/$']
如果换成
print(reverse('blog:article_page', args=article_id))
就正常了,为什么呢