资 源 简 介
Getting Started
Out of the box, django-seeker supports building a filter-based search interface driven from a django model. To get started, we"ll walk through adding a search interface for a model to an existing project. Keep in mind that the backend is pluggable, allowing you to write code to search on any data model.
Prerequisites
jQuery
json2.js
jQuery UI Datepicker
jQuery Form Plugin (for AJAX file imports)
URLs
Including the seeker application is easy:
```
from seeker.plugins.model import ModelSearchPlugin
params = {
"plugin": ModelSearchPlugin(MyModel),
"base_template": "search.html",
}
urlpatterns = patterns("",
( r"^search/", include("seeker.urls"), params ),
...
)
``