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 8097271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:42:15+00:00 2026-06-05T21:42:15+00:00

I was using haystack on my Windows computer, but I realized I needed other

  • 0

I was using haystack on my Windows computer, but I realized I needed other modules for my django app that are easier to install on Linux, so I moved to my VirtualBox with Ubuntu. I installed everything with virtualenv in a venv folder. Basically my app uses haystack with a Whoosh backend.
On view.py, on the import lines, when I do from haystack.query import SearchQuerySet it throws a No module named query error. Any ideas what might be wrong? Here is the entire error. I suspect I’m doing something wrong with the Python path. I installed everything with pip on the virtual env.

Request Method:     GET
Request URL:    http://127.0.0.1:8000/
Django Version:     1.4
Exception Type:     ImportError
Exception Value:    

No module named query

Exception Location:     /home/app/dj/venv/theme/../theme/views.py in <module>, line 10
Python Executable:  /home/app/dj/venv/bin/python
Python Version:     2.7.3
Python Path:    

['/home/app/dj/venv/theme',
 '/home/app/dj/venv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
 '/home/app/dj/venv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/app/dj/venv/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
 '/home/app/dj/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/app/dj/venv/lib/python2.7',
 '/home/app/dj/venv/lib/python2.7/plat-linux2',
 '/home/app/dj/venv/lib/python2.7/lib-tk',
 '/home/app/dj/venv/lib/python2.7/lib-old',
 '/home/app/dj/venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/app/dj/venv/local/lib/python2.7/site-packages',
 '/home/app/dj/venv/lib/python2.7/site-packages']
  • 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-05T21:42:17+00:00Added an answer on June 5, 2026 at 9:42 pm

    So I did a very dumb mistake.
    I used pip install haystack instead of pip install django-haystack.

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

Sidebar

Related Questions

I'm using django-haystack for a search page on my site. I'm basically done, but
I'm using haystack with whoosh as backend for a Django app. Is there any
I'm running solr on dotcloud for my django app (using haystack) and am running
Im using haystack to search my django website, it does this perfectly. However on
Using top it's easy to identify processes that are hogging memory and cpu, but
I am using Haystack in one app and its perfect. It is indexing everything
I am using django-haystack for searching. How can i display in the template the
I am using django-haystack for search. By default it is showing oldest objects first
I've installed the haystack app and I'm using the solr backend. Search works perfectly
I'm adding search to an existing Django site, using Haystack with a Solr backend.

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.