Django Reddit Style Voting Tutorialを使用すると、このエラーが発生します。トピック、そのトピックに関連する質問、質問に関連する回答を表示する Q&A スタイルのサイトを構築します。
TypeError at /home/1/
object_list() got an unexpected keyword argument 'movie_id'
これが私のコードです
#urlconf
url(r'^$', 'index'),
url(r'^(?P<movie_id>\d+)/$', object_list, dict(queryset = Question.objects.all(),
template_object_name = 'question', template_name = 'qanda/questions.html',
paginate_by = 15, allow_empty = True)),
私の index ビューはすべてのトピックを一覧表示し、index.html にレンダリングします。各トピックには ID があり、その ID に関連付けられた質問が次のページ question.html にレンダリングされます。
#index.html
{% if latest_movie_list %}
{% for movie in latest_movie_list %}
<li><a href="/home/{{ movie.id }}/">{{ movie.title }}</a></li>
{% endfor %}
エラーを修正するにはどうすればよいですか? 関連する質問で次のページをレンダリングする方法ですが、次のページをプルアップできません。