Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8803937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:28:21+00:00 2026-06-14T01:28:21+00:00

Using Django Reddit Style Voting Tutorial , and getting this error. Building a Q&A

  • 0

Using Django Reddit Style Voting Tutorial, and getting this error. Building a Q&A style site that displays a topic, then questions related to that topic, and then answers associated with the question.

TypeError at /home/1/
object_list() got an unexpected keyword argument 'movie_id'

Here’s my code

#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)),

My index view lists all of the topics and renders on index.html, and then each topic has an ID, and the questions associated with that ID are then rendered on the next page, questions.html.

#index.html
{% if latest_movie_list %}
    {% for movie in latest_movie_list %}
        <li><a href="/home/{{ movie.id }}/">{{ movie.title }}</a></li>
{% endfor %}

How do I fix the error? I need movie_id b/c that’s how I render the next page with associated questions, but I can’t pull up the next page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:28:23+00:00Added an answer on June 14, 2026 at 1:28 am

    I went through the pains of that outdated documentation myself. Here is how I got it to work:

    How do you join two tables using Django without using raw sql?

    Also, you may want to add this to the voting/urls.py

     url(r'^links/(?P<object_id>\d+)/(?P<direction>up|down|clear)vote/?$',                                                                                                                
         vote_on_object,                                                                                                                     
         dict(                                                                                                                               
             model=Movie,                                                                                                                     
             template_object_name='link',                                                                                                    
             template_name='movie/link_confirm_vote.html',                                                                                    
             allow_xmlhttprequest=True,                                                                                                      
             ),                                                                                                                              
         name="link_vote",)                                                                                                                  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While using django.core.paginator import ObjectPaginator, I'm getting this error: NeedIndexError: The built-in indices are
using django 1.4 im getting a 403 error when i try to do a
I'm using django-threadedcomments and django-voting in my project to achieve a Reddit-like comments voting
I using Django tagging project. That is was very stable project. Working on django
I am using Django Crispy Forms together with Twitter-bootstrap and following this page: http://django-crispy-forms.readthedocs.org/en/d-0/tags.html#bootstrap-layout-objects
Using Django 1.1.1 In models.py: class Site(models.Model): name = models.CharField(max_length=50) class SiteMonth(models.Model): site =
I am using django 1.4, and when I have this in settings: STATIC_URL =
I am creating a site similar to reddit and hacker news that has a
Using django 1.4 and have seen that when you use startproject it now creates
I'm using Django-social-auth for the first time, and it seems that all the new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.