Part two - Models and admin area - Creating a blog using Django 3

In this part of the series I'm going to show you how to use Django shell to insert data to the database. I'm also going to show you how to register the two models with the admin interface and how to log in there.

I hope this sounds exciting! If you have any questions, feel free to leave a reply :-)

Comments

EFSArCBy | Jul 02, 26 11:30

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

-1 OR 2+130-130-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 11:32

-1 OR 2+979-979-1=0+0+0+1

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

-1' OR 2+50-50-1=0+0+0+1 or '1tnoJsWO'='

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

(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:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

555rmhc2vk3' OR 686=(SELECT 686 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:32

555nXTwxTdR') OR 218=(SELECT 218 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:32

555O5dmOKGi')) OR 320=(SELECT 320 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

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

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555'"

EFSArCBy | Jul 02, 26 11:32

@@VWCal

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

-1 OR 2+813-813-1=0+0+0+1 -- | Jul 02, 26 11:32

555

-1 OR 2+27-27-1=0+0+0+1 | Jul 02, 26 11:32

555

-1' OR 2+626-626-1=0+0+0+1 -- | Jul 02, 26 11:32

555

-1' OR 2+624-624-1=0+0+0+1 or 'gkRfQLGA'=' | Jul 02, 26 11:32

555

-1" OR 2+917-917-1=0+0+0+1 -- | Jul 02, 26 11:32

555

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

555

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

555

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

555

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

555

EFSArCBy2Y9uvGZn'; waitfor delay '0:0:15' -- | Jul 02, 26 11:32

555

EFSArCByfKdERMcI' OR 468=(SELECT 468 FROM PG_SLEEP(15))-- | Jul 02, 26 11:32

555

EFSArCByKOg7iy8Q') OR 63=(SELECT 63 FROM PG_SLEEP(15))-- | Jul 02, 26 11:32

555

EFSArCByx4AYyi2W')) OR 621=(SELECT 621 FROM PG_SLEEP(15))-- | Jul 02, 26 11:32

555

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

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy'" | Jul 02, 26 11:32

555

@@dvgcx | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 02, 26 11:32

555

EFSArCBy | Jul 21, 26 12:26

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

-1 OR 2+142-142-1=0+0+0+1 --

EFSArCBy | Jul 21, 26 12:28

-1 OR 2+115-115-1=0+0+0+1

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

-1' OR 2+119-119-1=0+0+0+1 or 'eSreZVy7'='

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

555ZXQnomO1' OR 85=(SELECT 85 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:28

555z0P2rgC9') OR 449=(SELECT 449 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:28

555y1QAqydl')) OR 735=(SELECT 735 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

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

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555'"

EFSArCBy | Jul 21, 26 12:28

@@H7XPR

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

-1 OR 2+836-836-1=0+0+0+1 -- | Jul 21, 26 12:28

555

-1 OR 2+25-25-1=0+0+0+1 | Jul 21, 26 12:28

555

-1' OR 2+862-862-1=0+0+0+1 -- | Jul 21, 26 12:28

555

-1' OR 2+598-598-1=0+0+0+1 or 'NuZtCtw9'=' | Jul 21, 26 12:28

555

-1" OR 2+727-727-1=0+0+0+1 -- | Jul 21, 26 12:28

555

if(now()=sysdate(),sleep(15),0) | Jul 21, 26 12:28

555

EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 21, 26 12:28

555

EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 21, 26 12:28

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 21, 26 12:28

555

EFSArCByWuukrKcI'; waitfor delay '0:0:15' -- | Jul 21, 26 12:28

555

EFSArCByOX2s542h' OR 55=(SELECT 55 FROM PG_SLEEP(15))-- | Jul 21, 26 12:28

555

EFSArCByxcdyPjoj') OR 872=(SELECT 872 FROM PG_SLEEP(15))-- | Jul 21, 26 12:28

555

EFSArCByeBYePa76')) OR 956=(SELECT 956 FROM PG_SLEEP(15))-- | Jul 21, 26 12:28

555

EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy'" | Jul 21, 26 12:28

555

@@UPiix | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 21, 26 12:28

555

EFSArCBy | Jul 23, 26 03:20

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

-1 OR 2+260-260-1=0+0+0+1 --

EFSArCBy | Jul 23, 26 03:21

-1 OR 2+770-770-1=0+0+0+1

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

-1' OR 2+653-653-1=0+0+0+1 or 'Vc7ClF4T'='

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

555M0ckqAzR' OR 35=(SELECT 35 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:21

5551B4eqqSx') OR 557=(SELECT 557 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:21

555aKjea2V9')) OR 144=(SELECT 144 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

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

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555'"

EFSArCBy | Jul 23, 26 03:21

@@C52oN

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

-1 OR 2+359-359-1=0+0+0+1 -- | Jul 23, 26 03:21

555

-1 OR 2+712-712-1=0+0+0+1 | Jul 23, 26 03:21

555

-1' OR 2+825-825-1=0+0+0+1 -- | Jul 23, 26 03:21

555

-1' OR 2+505-505-1=0+0+0+1 or 'fkwuXEPr'=' | Jul 23, 26 03:21

555

-1" OR 2+764-764-1=0+0+0+1 -- | Jul 23, 26 03:21

555

if(now()=sysdate(),sleep(15),0) | Jul 23, 26 03:21

555

EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 23, 26 03:21

555

EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 23, 26 03:21

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 23, 26 03:21

555

EFSArCBytQQ8mc2Z'; waitfor delay '0:0:15' -- | Jul 23, 26 03:21

555

EFSArCByjNctMYEu' OR 53=(SELECT 53 FROM PG_SLEEP(15))-- | Jul 23, 26 03:21

555

EFSArCByxWXDLpTa') OR 290=(SELECT 290 FROM PG_SLEEP(15))-- | Jul 23, 26 03:21

555

EFSArCByw7HvNEX4')) OR 879=(SELECT 879 FROM PG_SLEEP(15))-- | Jul 23, 26 03:21

555

EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy'" | Jul 23, 26 03:21

555

@@sFVrk | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

555

EFSArCBy | Jul 23, 26 03:21

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.