4

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

Did as Docs tell:

from djangosphinx.admin import SphinxModelAdmin

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

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

Don't know what to do with this.

P.S. Django 1.3 if it matters.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
San4ez
  • 8,091
  • 4
  • 41
  • 62
  • What happens with your index when you define (and search against) that index in a `djangosphinx.SphinxSearch()` call? – yekta Aug 29 '13 at 04:32

1 Answers1

0

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

At last,I think it is the django version,I suggest you should update the latest!

wcc526
  • 3,915
  • 2
  • 31
  • 29