Categories/Search - Django Ecommerce Website - Htmx and Tailwind

In the fifth part of this tutorial series, we will show dynamic content in the sidebar of the shop. That means, we will get the categories from the database and list them there.

We will also make some changes, so that we can see which category is active.

Also, to make it easier for the users to find products, we are going to implement a simple search. In this search, we will be using a function from Django called Q. This makes it really easy to search in multiple fields at once.

Comments

No comments yet...

Add comment

Newsletter

Subscribe to my weekly newsletter. One time per week I will send you a short summary of the tutorials I have posted in the past week.