开发者

Sphinx search in django admin

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._m开发者_如何学Goeta.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.


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜