Error during template renderingIn template E:\IT\python3.7.0a2\Project\myblog\blog\templates\blog\mianindex.html, error at line 13Reverse for 'article_page' with arguments '('',)' not found. 1 pattern(s) tried: ['blog/article/(?P<article_id>[0-9]+)/$']<head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css"> a{text-decoration:none;} </style> </head> <body> <h1 align="center"> {% for mv in mainview %} <a href="{% url 'blog:article_page' article.id %}"> {{ mv.title }} </a> <br/> {% endfor %} </h1> <h1 align="right"> <a href="">新建文章</a> </h1> </body> </html>
添加回答
举报
0/150
提交
取消