【发布时间】:2009-12-04 17:48:33
【问题描述】:
这是我的网址格式:
news_info_month_dict = {
'queryset': Entry.published.filter(is_published=True),
'date_field': 'pub_date',
'month_format': '%m',
}
和
(r'^(?P<category>[-\w]+)/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+).html$',
'object_detail', news_info_month_dict, 'news_detail'),
但他们有这样的错误:
object_detail() got an unexpected keyword argument 'category'
请帮助我。谢谢!
【问题讨论】:
标签: django django-urls django-views