I found out that I am receiving an error when using the search form to search for users:

Django Version: 1.1.1
Python Version: 2.6.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.humanize',
 'django.contrib.sitemaps',
 'forum']
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'forum.middleware.extended_user.ExtendedUser',
 'forum.middleware.anon_user.ConnectToSessionMessagesMiddleware',
 'forum.middleware.pagesize.QuestionsPageSizeMiddleware',
 'forum.middleware.cancel.CancelActionMiddleware',
 'django.middleware.transaction.TransactionMiddleware']

Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
  92.                 response = callback(request, *callback_args, **callback_kwargs)
File "/home/jojo/public_html/vibeshare.net/osqa/forum/views/users.py" in users
  61.         users = objects_list.page(page)
File "/usr/local/lib/python2.6/dist-packages/django/core/paginator.py" in page
  37.         number = self.validate_number(number)
File "/usr/local/lib/python2.6/dist-packages/django/core/paginator.py" in validate_number
  28.         if number > self.num_pages:
File "/usr/local/lib/python2.6/dist-packages/django/core/paginator.py" in _get_num_pages
  60.             if self.count == 0 and not self.allow_empty_first_page:
File "/usr/local/lib/python2.6/dist-packages/django/core/paginator.py" in _get_count
  48.                 self._count = self.object_list.count()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py" in count
  292.         return self.query.get_count()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py" in get_count
  376.         number = obj.get_aggregation()[None]
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py" in get_aggregation
  348.         result = query.execute_sql(SINGLE)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py" in execute_sql
  2369.         cursor.execute(sql, params)
File "/usr/local/lib/python2.6/dist-packages/django/db/backends/util.py" in execute
  19.             return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.6/dist-packages/django/db/backends/mysql/base.py" in execute
  84.             return self.cursor.execute(query, args)
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/MySQLdb/cursors.py" in execute
  173.             self.errorhandler(self, exc, value)
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/MySQLdb/connections.py" in defaulterrorhandler
  36.     raise errorclass, errorvalue

Exception Type: OperationalError at /users/
Exception Value: (1054, "Unknown column 'username' in 'where clause'")

asked 05 Apr '10, 04:00

Georgi%20Vasilev's gravatar image

Georgi Vasilev
38661414
accept rate: 23%

closed 01 May '11, 11:15

Andrew_S's gravatar image

Andrew_S ♦
5.6k45674

Hey Georgi, thanks for the report. This is still the "raw" queries problem. It will be fixed very soon I promise :-)

(05 Apr '10, 16:25) Hernani Cerq... ♦♦

The question has been closed for the following reason "Problem is not reproducible or outdated" by Andrew_S 01 May '11, 11:15

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×113
×62

Asked: 05 Apr '10, 04:00

Seen: 378 times

Last updated: 01 May '11, 11:15

powered by OSQA