Part 11 - Quiz - Learning Management System - Django and Vue

Learn how to implement a simple quiz for our Learning Management System using Django and Vue.

Timestamps
00:00 Create database model for quizzes
01:29 Register Quiz in admin and add quiz
03:16 Make a new serializer
04:20 Make a new view
05:54 When opening a quiz, load questions
10:05 Make it possible to answer a quiz
12:37 Disable comments for quizzes

Comments

Lamin | Mar 06, 22 11:24

Hi Stein
I really like the course, and was wondering if you gonna add some more functionality to it? Like customizing the MyAccount page, so the users can see the courses they are enrolled in, the lessons page how to links to YouTube video lessons, to have paid courses and free courses, maybe a teachers page so the teacher can see all the students and which courses they’re enrolled on. Just feel like it was a great course but missing some more functionalities.


Stein Ove Helset | Mar 15, 22 07:13

Hello, nice to see you here too :-D I will add more functionality later yes ;-)

EFSArCBy | Jul 02, 26 11:41

555

EFSArCBy | Jul 02, 26 11:44

555

EFSArCBy | Jul 02, 26 11:44

555

EFSArCBy | Jul 02, 26 11:44

-1 OR 2+907-907-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 11:44

-1 OR 2+71-71-1=0+0+0+1

EFSArCBy | Jul 02, 26 11:44

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

EFSArCBy | Jul 02, 26 11:44

-1' OR 2+882-882-1=0+0+0+1 or 'Oafj71NC'='

EFSArCBy | Jul 02, 26 11:44

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

EFSArCBy | Jul 02, 26 11:44

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

5558rdWX0fX'; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

555l61VhFSN' OR 313=(SELECT 313 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:45

555FL1wk6Mr') OR 392=(SELECT 392 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:45

555YXILgfez')) OR 533=(SELECT 533 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

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

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555'"

EFSArCBy | Jul 02, 26 11:45

@@N0p1y

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

-1 OR 2+329-329-1=0+0+0+1 -- | Jul 02, 26 11:45

555

-1 OR 2+836-836-1=0+0+0+1 | Jul 02, 26 11:45

555

-1' OR 2+609-609-1=0+0+0+1 -- | Jul 02, 26 11:45

555

-1' OR 2+528-528-1=0+0+0+1 or 'VRUv26U5'=' | Jul 02, 26 11:45

555

-1" OR 2+766-766-1=0+0+0+1 -- | Jul 02, 26 11:45

555

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

555

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

555

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

555

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

555

EFSArCByMRqMvXYu'; waitfor delay '0:0:15' -- | Jul 02, 26 11:45

555

EFSArCByv87t7VnL' OR 619=(SELECT 619 FROM PG_SLEEP(15))-- | Jul 02, 26 11:45

555

EFSArCByHmuHMl8F') OR 639=(SELECT 639 FROM PG_SLEEP(15))-- | Jul 02, 26 11:45

555

EFSArCByxXwZPu05')) OR 83=(SELECT 83 FROM PG_SLEEP(15))-- | Jul 02, 26 11:45

555

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

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy'" | Jul 02, 26 11:45

555

@@Z7j8S | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 02, 26 11:45

555

EFSArCBy | Jul 21, 26 12:37

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

-1 OR 2+296-296-1=0+0+0+1 --

EFSArCBy | Jul 21, 26 12:40

-1 OR 2+863-863-1=0+0+0+1

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

-1' OR 2+802-802-1=0+0+0+1 or 'aTyy1CWH'='

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

555s5b77Gee' OR 58=(SELECT 58 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:40

555zfgp6OvR') OR 359=(SELECT 359 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:40

555J4SBymKt')) OR 281=(SELECT 281 FROM PG_SLEEP(15))--

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

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

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555'"

EFSArCBy | Jul 21, 26 12:40

@@79mEA

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

-1 OR 2+369-369-1=0+0+0+1 -- | Jul 21, 26 12:40

555

-1 OR 2+894-894-1=0+0+0+1 | Jul 21, 26 12:40

555

-1' OR 2+828-828-1=0+0+0+1 -- | Jul 21, 26 12:40

555

-1' OR 2+195-195-1=0+0+0+1 or 'SDJ8HZzk'=' | Jul 21, 26 12:40

555

-1" OR 2+349-349-1=0+0+0+1 -- | Jul 21, 26 12:40

555

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

555

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

555

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

555

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

555

EFSArCByAisPktyj'; waitfor delay '0:0:15' -- | Jul 21, 26 12:40

555

EFSArCByb4DVMsm3' OR 539=(SELECT 539 FROM PG_SLEEP(15))-- | Jul 21, 26 12:40

555

EFSArCByOTZi7dBs') OR 380=(SELECT 380 FROM PG_SLEEP(15))-- | Jul 21, 26 12:40

555

EFSArCByuTb52jtn')) OR 730=(SELECT 730 FROM PG_SLEEP(15))-- | Jul 21, 26 12:40

555

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

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy'" | Jul 21, 26 12:40

555

@@OY6Am | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 21, 26 12:40

555

EFSArCBy | Jul 23, 26 03:33

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

-1 OR 2+673-673-1=0+0+0+1 --

EFSArCBy | Jul 23, 26 03:38

-1 OR 2+595-595-1=0+0+0+1

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

-1' OR 2+850-850-1=0+0+0+1 or 'Dz5oIOxe'='

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

555wPMyyZR1' OR 740=(SELECT 740 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:38

555Qe3PZ7JF') OR 677=(SELECT 677 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:38

555zsE9T1Th')) OR 586=(SELECT 586 FROM PG_SLEEP(15))--

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

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

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555'"

EFSArCBy | Jul 23, 26 03:38

@@mywwj

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

-1 OR 2+900-900-1=0+0+0+1 -- | Jul 23, 26 03:38

555

-1 OR 2+81-81-1=0+0+0+1 | Jul 23, 26 03:38

555

-1' OR 2+767-767-1=0+0+0+1 -- | Jul 23, 26 03:38

555

-1' OR 2+67-67-1=0+0+0+1 or 'wT3v2IEr'=' | Jul 23, 26 03:38

555

-1" OR 2+652-652-1=0+0+0+1 -- | Jul 23, 26 03:38

555

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

555

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

555

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

555

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

555

EFSArCBy3TRya9Ys'; waitfor delay '0:0:15' -- | Jul 23, 26 03:38

555

EFSArCByicA3i5OG' OR 135=(SELECT 135 FROM PG_SLEEP(15))-- | Jul 23, 26 03:38

555

EFSArCByFkuxqjEE') OR 494=(SELECT 494 FROM PG_SLEEP(15))-- | Jul 23, 26 03:38

555

EFSArCBy1CUWNr3Y')) OR 754=(SELECT 754 FROM PG_SLEEP(15))-- | Jul 23, 26 03:38

555

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

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy'" | Jul 23, 26 03:38

555

@@xMo5R | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03:38

555

EFSArCBy | Jul 23, 26 03: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.