So we need to hook the search field up to a basic search. Searching in the search field will return datasets that have names matching the search pattern. We'll use the search pattern icontains - described here in the Django docs
To do:
Create a search url pattern in urls.py
Pass the argument (the search term) to a views.py function
Run the query using icontains
Return the list of objects and populate a basic template page.
So we need to hook the search field up to a basic search. Searching in the search field will return datasets that have names matching the search pattern. We'll use the search pattern
icontains
- described here in the Django docsTo do: