我正在尝试将我的视图重定向到带有get请求参数的网址但是错误。
Reverse for 'article-detail-view' with arguments '(u'Django is a powerful web framework that can help you get your Python application or website off the ',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['article/(?P<slug>\\w+).html$']
模板渲染期间出错
{% for article in hot_article_list %}
<li class="list-group-item">
<span class="hotest-post-title"><a href="
{% url 'article-detail-view' article.en_title %}
">{{article.title}}</a> </span>
<span class="badge">{{article.view_times}}</span>
</li>
{% endfor %}
网址格式:
url(r'^$', IndexView.as_view(), name='index-view'),
url(r'^article/(?P<slug>\w+).html$',
ArticleView.as_view(), name='article-detail-view')
请帮助我,谢谢!