django-pagetools
stable
  • Installation
  • Quickstart
  • App integration
  • Pagelike
  • Pages
  • Menus
  • Widgets
  • Search
  • Sections
django-pagetools
  • »
  • Search
  • Edit on GitHub

SearchΒΆ

A simple database search.

Set pagetools.search.search_mods somewhere like this:

search_mods = (
    ( app.models.Model1,   ('title', 'content') ),
    ( app.models.Model2, ('title', 'content','footer') ),
)

to define which fields from which models should be searchable.

The pagetools.search.views.SearchResultView exects one more of the following GET paramters:

  • contains_any=comma,speparated,list,of,words

  • contains_all= ..

  • contains_not= ..

Next Previous

© Copyright 2023, Tim Heithecker. Revision c20581da.

Built with Sphinx using a theme provided by Read the Docs.