Search for sphinxes in django admin

Trying to use sphinx search in django admin. Installed django-sphinx .

As Docs reported:

from djangosphinx.admin import SphinxModelAdmin class MyAdmin(SphinxModelAdmin): index = 'my_index_name' # defaults to Model._meta.db_table weights = {'field': 100} 

As a result, I got a global name 'Paginator' is not defined error global name 'Paginator' is not defined , fixed it, then another 'list' object has no attribute 'ordered'

I don’t know what to do with it.

PS Django 1.3, if that matters.

+4
source share
1 answer

I think the django version will not be satisfied, now django django version 1.6.2 , or you can use xadmin , which is good

Finally, I think this is a version of django, I suggest you update the latest version.

0
source

All Articles