Questions tagged [django-quiz]

9 questions
4
votes
2 answers

How to add fields to third party app model?

I'm working on a web page which uses Django-quiz app. When you install the django-quiz, you can create quizes, questions etc. in Admin. Unfortunately, there is no way, how to assign Quiz to my model Language so I'm looking for a way, how to add…
Milano
  • 18,048
  • 37
  • 153
  • 353
2
votes
1 answer

Adding a redirect to CreateAPIView

I want to redirect the user to the AddQuestionsView after the user creates a quiz(after adding title). My CreateQuiz class CreateQuizzView(CreateAPIView): serializer_class = CreateQuizSerializer My serializers.py file class…
1
vote
2 answers

How can I control model fields in for loop in django?

I am new to django. I am trying to build an Quiz web application that puts one question at a time and as soon as student select one answer on radio button, it immediately shows response whether his answer is correct or incorrect. If incorrect, it…
Vishal Maurya
  • 21
  • 1
  • 4
0
votes
1 answer

Quiz django. Can't get answers to the questions

I'm new to django and I don't understand why the answers to the questions are not displayed on the screen (although the questions themselves are displayed). Everything is also empty in the source code of the page. Help please model.py from…
0
votes
0 answers

How can I compare the user's answer in the quizz with the correct answer in the database and give a point if the answer is correct?

How can I compare the user's answer in the quizz with the correct answer in the database and give a point if the answer is correct? currently i get all answers wrong, after the quiz.I Want, if the user choice the right answer, that he get a point…
user19433213
0
votes
2 answers

Changes to Django Template is not reflecting

I followed the instructions on https://github.com/tomwalker/django_quiz to use this project. I am able to successfully use the project. However, when I change the template (.html files) nothing changes. Even If I add or delete the entire content. I…
0
votes
1 answer

how do I get all the four options with each question... like if i print question then how do i print all the four option of that particular question

from django.db import models class Questions(models.Model): question = models.CharField(max_length=50) choice1 = models.CharField("Choice1", max_length=50,default="option1") choice2 = models.CharField("Choice2",…
Nep_tune
  • 11
  • 1
  • 5
0
votes
0 answers

Card-flip functionality in Django Quiz website

I am new to Django. This is technically my first project. I am building a quiz web app in Django, using tomwalker's quiz app I would like to present the questions on a card, when a user answers the question the card shall flip and show the…
Addy
  • 1
  • 1
-1
votes
1 answer

How can I ask questions randomly to different user in django?

I want to create a list of questions and from it I want to ask random 5 questions to each logged in user.How can i do it. where can I create a list of quetions and options.How can I render questions and answer to html page ? I tried to create a db…
omkar more
  • 105
  • 2
  • 10