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

  • Home
  • SEARCH
  • 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 6193347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:06:14+00:00 2026-05-24T03:06:14+00:00

Folks. I just can’t make the jump from the Haystack tutorial/docs to my (simple)

  • 0

Folks. I just can’t make the jump from the Haystack tutorial/docs to my (simple) application.

I’ve got Haystack/Whoosh working per the tutorial, and serving results. Now, instead of a separate search page, I want to search from a form on (say) my archive page and serve the results back into the same page.

I’ve got this going and showing the search form, and returning the query:

def blog_list(request, template_name="blog/blog_list.html"):
    query=request.GET.get('q','')
    form=ModelSearchForm({'q': query })

    extra_context = {
         'query': query,
        'form': form,
    }
    return object_list(
        request,
        queryset=Entry.live.all(),
        extra_context=extra_context
    )

But in the template, {% for result in page.object_list %} isn’t returning anything. Half my problem is that I’ve no idea where page.object_list is coming from and can’t fathom it from the tutorial/documentation.

Can anyone shed some light on this for me? Thank you.

  • 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-05-24T03:06:15+00:00Added an answer on May 24, 2026 at 3:06 am

    You haven’t passed in anything called page, so naturally it’s empty. It doesn’t “come from” anywhere, unless you specifically pass it in.

    The bit you don’t seem to be doing is actually performing the search and passing the results to the template. Look how it’s done in Haystack’s built-in basic_search view – it calls the form’s .search() method, passes the results to the Paginator class, and then passes that to the context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Folks i just want to know how can i make a or a
Hi folks can we upload photos from phone`s camera just with pure HTML5? Can
Folks, The project that I am working on requires that a certain video can
from the interpreter i can issue >>> from MySQLdb just fine. so, I'm assuming
I'm seeing something that's got me stumped. Maybe you folks can advise. What appears
The application I'm working on has an activity feed where each user can see
Good morning folks, just wanted to check if someone can help me with the
Sorry to bother you folks. But i have a simple question. Ho can I
Folks, we all know that IP blacklisting doesn't work - spammers can come in
Folks, I'm working on a little piece of rich client software that I'd like

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.