猿问

python无法显示页面

Error during template rendering

In template E:\IT\python3.7.0a2\Project\myblog\blog\templates\blog\mianindex.html, error at line 13

Reverse 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>    



JokerKings
浏览 1142回答 1
1回答
随时随地看视频慕课网APP

相关分类

Python
我要回答