DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » 'Indexable' object has no attribute 'get_model' [RSS Feed]

#1 Jan. 26, 2012 00:31:10

switchtower
Registered: 2012-01-26
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

'Indexable' object has no attribute 'get_model'

I've been trying to get this configured for a good part of the day, but I'm unsure where I'm going wrong. It looks like DjangoBB was designed for an older version of Haystack, and I thought I reconfigured DjangoBB for the newer version, but everything I try, I just end up with this same error.

Here is the traceback:


Environment:
Request Method: GET
Request URL: http://172.16.190.158/forum/ [172.16.190.158]

Django Version: 1.3.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.sites’,
‘granadilla’,
‘netevents’,
‘netequipment’,
‘dynamic_todo’,
‘assets’,
‘scheduler’,
‘subnet’,
‘landing’,
‘hitcount’,
‘forum’,
‘haystack’,
‘django.contrib.admin’]
Installed Middleware:
('django.middleware.common.CommonMiddleware',
‘django.contrib.sessions.middleware.SessionMiddleware’,
‘django.contrib.auth.middleware.AuthenticationMiddleware’,
‘middleware.AutoLogout’,
‘middleware.Http403Middleware’)


Traceback:
File “/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py” in get_response
178. response = middleware_method(request, response)
File “/usr/local/lib/python2.6/dist-packages/django/contrib/sessions/middleware.py” in process_response
36. request.session.save()
File “/usr/local/lib/python2.6/dist-packages/django/contrib/sessions/backends/db.py” in save
63. obj.save(force_insert=must_create, using=using)
File “/usr/local/lib/python2.6/dist-packages/django/db/models/base.py” in save
460. self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File “/usr/local/lib/python2.6/dist-packages/django/db/models/base.py” in save_base
484. signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using)
File “/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py” in send
172. response = receiver(signal=self, sender=sender, **named)
File “/usr/local/lib/python2.6/dist-packages/haystack/models.py” in load_indexes
228. conn.get_unified_index().setup_indexes()
File “/usr/local/lib/python2.6/dist-packages/haystack/utils/loading.py” in setup_indexes
268. self.build()
File “/usr/local/lib/python2.6/dist-packages/haystack/utils/loading.py” in build
200. model = index.get_model()

Exception Type: AttributeError at /forum/
Exception Value: ‘Indexable’ object has no attribute ‘get_model’

Offline

#2 Jan. 26, 2012 11:01:08

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 284
Reputation: +  6  -
Profile   Send e-mail  

'Indexable' object has no attribute 'get_model'

haystack version, pls

Offline

#3 Jan. 26, 2012 17:58:21

switchtower
Registered: 2012-01-26
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

'Indexable' object has no attribute 'get_model'

In : haystack.__version__
Out: (2, 0, 0, ‘beta’)

Offline

#4 Jan. 26, 2012 18:22:44

switchtower
Registered: 2012-01-26
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

'Indexable' object has no attribute 'get_model'

Rolling back to 1.2 seemed to fixed the issues, I'm not getting that error any more.

Is there anything I can do so I can use the newest version or do you suggest sticking with 1.2?

Thanks!!

–Nick

Offline

#5 Jan. 27, 2012 11:57:08

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 284
Reputation: +  6  -
Profile   Send e-mail  

'Indexable' object has no attribute 'get_model'

well, beta is beta) i mostly try to use stable versions for dependence
when 2.0 will be released i tried update djangobb

Offline

  • Root
  • » Bugs
  • » 'Indexable' object has no attribute 'get_model' [RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version