Code Monkey home page Code Monkey logo

django-quiz-app's Introduction

django-quiz-app

It is django based quiz app for multiple choice questions.

Snaps of project

Login: alt text

quiz: alt text

results: alt text

Instructions

  1. Installations

Make sure to have python version 3 install on you pc or laptop. If not install it from here
Clone repository
https://github.com/sswapnil2/django-quiz-app.git
cd django-quiz-app

  1. Installing dependencies

It will install all required dependies in the project.
pip install -r requirements.txt

  1. Migrations

To run migrations.
python manage.py makemigrations
python manage.py migrate

  1. Create superuser

To create super user run.
python manage.py createsuperuser
After running this command it will ask for username, password. You can access admin panel from localhost:8000/admin/

  1. Running locally

To run at localhost. It will run on port 8000 by default.
python manage.py runserver

  1. Reference

I have refernced this quizz app from tomwalker's original repo. Reference link to the quiz app repo is here

django-quiz-app's People

Contributors

dependabot[bot] avatar khangthinhdev avatar sswapnil2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-quiz-app's Issues

user friendly url

can anyone please tell me what to write in user friendly url box in admin section

CSV File upload format

Hi Sir,
Kindly tell me format of the csv file which we will upload in the MCQQuestion section.

SyntaxError: invalid syntax

I am getting the syntax error at File "/home/vinove/Documents/dqjango-quiz-app/quiz/models.py", line 563
return f'csv/{num_}/{instance.user.username}/{filename}'

By removing the f solved the issue.

Add CSS file

I forked the project but could not find CSS file. Thus the pages don't look like what screen-shoots show

'NoneType' object is not iterable

I get this error 'NoneType' object is not iterable with this location django-quiz-app/mcq/models.py in get_answers_list, line 41. So the problem is that portion of code:
def get_answers_list(self): return [(answer.id, answer.content) for answer in self.order_answers(Answer.objects.filter(question=self))]
I dont know how to fix it and why is it returning a NoneType object.

Not an Issue just a question

Hi there, nice to see an updated django quiz app that has been adapted for python 3 and has been updated recently...I haven't bothered with Tom walkers version for these reasons, does that version allow other types of questions?

for example checkbox answeres with multiple like a choose 3 that apply sort of situation. Do you have plans to update this at all?

SyntaxError: invalid syntax

I am getting the syntax error at File "/home/vinove/Documents/dqjango-quiz-app/quiz/models.py", line 563
return f'csv/{num_}/{instance.user.username}/{filename}'

By removing the f solved the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.