tomwalker / django_quiz Goto Github PK
View Code? Open in Web Editor NEWThis is a configurable quiz app for Django.
This is a configurable quiz app for Django.
Yow,
I downloaded the project and installed it like the readme told me.
However, I can't run any migration or run the server locally using django-admin. Isn't the project meant to have a manage.py
?
If someone could elaborate on how to actually run the project when downloaded and installed it would be great. I am currently evaluating this project for a client and if it suits our initial needs we could spend some hours contributing to this project.
Here is the error when I try to run the project (on windows):
PS C:\Users\myuser\Documents\Code\django_quiz> django-admin runserver
Traceback (most recent call last):
File "C:\Python36\Scripts\django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "c:\python36\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "c:\python36\lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\python36\lib\site-packages\django\core\management\__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "c:\python36\lib\site-packages\django\core\management\__init__.py", line 75, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "c:\python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "c:\python36\lib\site-packages\django\core\management\commands\runserver.py", line 12, in <module>
from django.core.servers.basehttp import run, get_internal_wsgi_application
File "c:\python36\lib\site-packages\django\core\servers\basehttp.py", line 20, in <module>
from django.core.wsgi import get_wsgi_application
File "c:\python36\lib\site-packages\django\core\wsgi.py", line 1, in <module>
from django.core.handlers.wsgi import WSGIHandler
File "c:\python36\lib\site-packages\django\core\handlers\wsgi.py", line 11, in <module>
from django.core.handlers import base
File "c:\python36\lib\site-packages\django\core\handlers\base.py", line 16, in <module>
from django.views import debug
File "c:\python36\lib\site-packages\django\views\debug.py", line 12, in <module>
from django.template import Template, Context, TemplateDoesNotExist
File "c:\python36\lib\site-packages\django\template\__init__.py", line 53, in <module>
from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
File "c:\python36\lib\site-packages\django\template\base.py", line 19, in <module>
from django.utils.html import escape
File "c:\python36\lib\site-packages\django\utils\html.py", line 14, in <module>
from .html_parser import HTMLParser, HTMLParseError
File "c:\python36\lib\site-packages\django\utils\html_parser.py", line 12, in <module>
HTMLParseError = _html_parser.HTMLParseError
Do I simply use too new of a Python version?
Best wishes,
Markus
I could not found any manage.py
file as a result can't run the project with python manage.py runserver
.
Please let me know the process to run the project.
Please Add Timer for the exam. So that timed exam can be created.
Dear all,
Thanks for the package. I have found it easy to get started and features are greate.
I'd like to clarify how randomization within a category works. the README says
After selecting a larger pool of questions, a quiz can be set to show a random subset rather than all within the pool
On a quiz admin page I can see a drop down menu to select a category, and then a max questions field to set.
It seems to me that max question number is drawn from both categories at the same time. What is the purpose of the drop down to select the category?
Also, consider the following use case: I have a pool of questions with two categories and I'd like to draw N questions from one category and M questions from the other. Is there a way to do it? I could settle to the same number of questions in each category.
Also, how easy is to place all questions on the same page?
Thanks in advance!
Please is there any suggested metod to make the admin panel like the modern day django admin panel
the look isn't so interactive
Thanks @d0ugal @amboycharlie @ryanka
sk @rob-b @sjardim
Hello!
First I would very much like to thank you for amazing app which spared me A LOT of time.
I have an idea for my website but I am just getting started with Django and I'm losing faith I will get into it since I am new to programming.
However, I was able to run simple website using your app.
OK, to the point... I was thinking of allowing users to add MCQuestions themselves (taking all the risks into consideration) but the problem is... I don't know how to do it. It may be a basic thing to do but I didn't get the full picture of the code so I was just trying some simple ideas that didn't work out.
Is there any simple way to do this (ignoring the auth system - let's say every visitor -even non-registered - could add question)? I would very much appreciate if you helped me.
Thank you very much.
Hi,
I created a question in multichoice and selected two answers as correct. But I can only select one answer.
how can i switch from single answer to multiple selectable answers?
I would like to propose support for Django 1.9 and/or 1.10.
I tried to work on that, but seems like it need a deep dive. Anybody is interested or already working on that?
@tomwalker Are you active with this repo? Adding migrations folders to each app and an empty init.py will allow migrations to run for setup. Then the database migrations can be run with:
python manage.py makemigrations
python manage.py migrate
Also, besides a couple warnings, this app is working with Django 1.9.7 and Python 3.5.
If a question has figures (images) associated with it, such figures are not displayed correctly while taking the quiz.
The quiz question is displayed at:
http://localhost:8000/q/<user_friendly_quiz_url>/take/
The URL of the figure is of the form:
http://localhost:8000/q/<user_friendly_quiz_url>/take/uploads/2017/08/14/<image_name>
But there is no image served at that URL.
So I know this is meant to be a library. However, can we get documentation on this? There is nothing but a brief readme. Can some of those who've set up the project successfully come chip in? It's 2019 by the way so can we as well move to latest versions of the dependencies with reference to Django and Python.
Especially for short answers i.e. true/false, on a wide screen, the label should be 100% width of the li.
I will work on a fix.
Hello,
looks like this App works very solid on Django 1.5.5 there are some bugs that I have found and I'm just not that far with Django that I could debug them.
If I take a look at quiz/progress I get this Error:
ZeroDivisionError at /quiz/progress
float division
Request Method: GET
Request URL: http://127.0.0.1:8000/de/quiz/progress
Django Version: 1.5.5
Exception Type: ZeroDivisionError
Exception Value: float division
The 2 Files that I get the error from are views.py and models.py.
Models.py this:
percent = int(round((float(score) / float(possible)) * 100))
Views.py this:
cat_scores = progress.list_all_cat_scores() # dict {category name: list of three integers [score, possible, percent]}
Would it be possible to get this App runing 100% with Django 1.5.5?
I've created a local version of this library that passes all the included unit tests for Python 3.8, Django 3.0.2, and the long-term-support Django 2.2. But it's not compatible with Python 2 or Django 1. So if I open a pull request now, it's not going to pass the integration tests as currently configured.
I propose dropping the relevant TOX_ENVs from .travis.yml and adding new ones for Python 3.7 and 3.8, and for Django 3.0.
Python 2.7 reached end-of-life status on January 1, 2020 (https://devguide.python.org/devcycle/#devcycle.
Django 1.11 long term support is expected to end in April 2020 (https://www.djangoproject.com/download/#supported-versions.
I think some people might now be encountering problems integrating this into Django 3.0 projects. So I think the benefit of updating for Django 3 compatibility outweighs any costs of ending Django 1 and Python 2.7 support.
Hello.
When I submit an answer to a quiz, the url changes from /quiz/quiz-name to /quiz-name/take/?guess=4
Because of this, the template does not load. Where do I change this behaviour? Please help.
Hello!
I am trying to run the barebones application with an empty Django prorject.
I followed the README.md instructions and I've got a .egg
I create a new Django project ( django-admin startproject xyz )
I move the .egg file to the app directory and add sys.path.append("django_quiz_app-0.5.1-py2.7.egg")
to the manage.py (so that my Django app can see the required libs) and modify the settings.py and url.py (according to README.md instructions)
I start the project ( python manage.py runserver
) and it runs OK. However when I point my browser to 127.0.0.1/q , I get the following error:
Request Method: | GET
-- | --
http://127.0.0.1:8000/q/
1.6.5
OperationalError
no such table: quiz_quiz
/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 451
/usr/local/opt/python/bin/python2.7
Is there something I am doing wrong?
This app needs support for figures in the questions. I have already written the support into my own application, and I plan to share the code soon.
On Python 2.7, 3.4, and 3.5 I get this error when I try to install from PyPI:
$ pip install django-quiz-app
Collecting django-quiz-app
Downloading django-quiz-app-0.5.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/h_/rdtpztvj4c9cfg2ctqyp_wl40000gp/T/pip-build-h8rl1rpd/django-quiz-app/setup.py", line 3, in <module>
readme = open('README.rst').read()
FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/h_/rdtpztvj4c9cfg2ctqyp_wl40000gp/T/pip-build-h8rl1rpd/django-quiz-app
It's really strange, because your MANIFEST.in
includes the README.rst file that's breaking the install.
How would one go about getting JSON data from this Django database?
Thanks!
Chris
Following error I am getting will I start taking quiz:
Request Method: | GET |
---|---|
http://127.0.0.1:8000/test/test/take/ | |
1.10 | |
ValueError | |
invalid literal for int() with base 10: '2,' | |
/home/pintu/djangogirls/myvenv/lib/python3.6/site-packages/django/db/models/fields/init.py in get_prep_value, line 1832 | |
/home/pintu/djangogirls/myvenv/bin/python | |
3.6.0 |
Traceback Switch to copy-and-paste view
/home/pintu/djangogirls/test/models.py in user_sitting
sitting = self.get(user=user, quiz=quiz, complete=False)
During handling of the above exception (Sitting matching query does not exist.), another exception occurred:
/home/pintu/djangogirls/test/views.py in dispatch
self.quiz) ...
▶ Local vars
/home/pintu/djangogirls/test/models.py in user_sitting
sitting = self.new_sitting(user, quiz) ...
▶ Local vars
/home/pintu/djangogirls/test/models.py in new_sitting
user_answers='{}')
Hello
Anytime i add
objects = InheritanceManager() i get this error
Internal Server Error: /quiz/ccna-quiz-2/take/
Traceback (most recent call last):
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/home/photon/web_project/cbtapp/quiz_app/views.py", line 190, in dispatch
return super(QuizTake, self).dispatch(request, *args, **kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/views/generic/edit.py", line 133, in get
return self.render_to_response(self.get_context_data())
File "/home/photon/web_project/cbtapp/quiz_app/views.py", line 225, in get_context_data
context = super(QuizTake, self).get_context_data(**kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/django/views/generic/edit.py", line 66, in get_context_data
kwargs['form'] = self.get_form()
File "/home/photon/web_project/cbtapp/quiz_app/views.py", line 194, in get_form
self.question = self.sitting.get_first_question()
File "/home/photon/web_project/cbtapp/quiz_app/models.py", line 397, in get_first_question
return Question.objects.get_subclass(id=question_id)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/model_utils/managers.py", line 185, in get_subclass
return self.get_queryset().get_subclass(*args, **kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/model_utils/managers.py", line 160, in get_subclass
return self.select_subclasses().get(*args, **kwargs)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/model_utils/managers.py", line 20, in select_subclasses
self.model, levels=levels)
File "/home/photon/.local/share/virtualenvs/cbtapp-s8Tp4Urs/lib/python3.7/site-packages/model_utils/managers.py", line 106, in _get_subclasses_recurse
rel for rel in model._meta.get_all_related_objects()
AttributeError: 'Options' object has no attribute 'get_all_related_objects'
[10/Dec/2018 19:01:11] "GET /quiz/ccna-quiz-2/take/ HTTP/1.1" 500 117267
While installing requirements, i get error:Unable to find vcvarsall.bat
I try to drop the figure field in multiple-choice and replace it with a new charfield figure_url to save url of figure saved in another website (I also changed admin and template accordingly). First, I ran "python manage.py makemigrations + migrate", no migration applied, then I used "python manage.py makemigrations quiz + migrate". Got the following message for failing of running migration. Thanks.
Operations to perform:
Synchronize unmigrated apps: django_markdown, staticfiles, multichoice, smart_selects, messages, true_false, crispy_fo
rms, mptt, essay
Apply all migrations: rango, sites, quiz, tagging, admin, registration, contenttypes, auth, biology, blog, sessions, d
jango_comments, zinnia, flatpages
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states...Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "...\lib\site-packages\django\core\management__init__.py", line 338, in execute_
from_command_line
utility.execute()
File "...\lib\site-packages\django\core\management__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "...\lib\site-packages\django\core\management\base.py", line 390, in run_from_arg
v
self.execute(_args, *_cmd_options)
File "...\lib\site-packages\django\core\management\base.py", line 441, in execute
output = self.handle(_args, *_options)
File "...\lib\site-packages\django\core\management\commands\migrate.py", line 221, in
handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
File "...\lib\site-packages\django\db\migrations\executor.py", line 100, in migrate
state.apps # Render all real_apps -- performance critical
File "...\lib\site-packages\django\utils\functional.py", line 60, in get
res = instance.dict[self.name] = self.func(instance)
File "...\lib\site-packages\django\db\migrations\state.py", line 166, in apps
return StateApps(self.real_apps, self.models)
File "...\lib\site-packages\django\db\migrations\state.py", line 232, in init
self.render_multiple(list(models.values()) + self.real_models)
File "...\lib\site-packages\django\db\migrations\state.py", line 270, in render_multip
le
"for more" % (new_unrendered_models, get_docs_version())
django.db.migrations.state.InvalidBasesError: Cannot resolve bases for [<ModelState: 'multichoice.MCQuestion'>, <ModelSt
ate: 'true_false.TF_Question'>, <ModelState: 'essay.Essay_Question'>]
This can happen if you are inheriting models from an app with migrations (e.g. contrib.auth)
in an app with no migrations; see https://docs.djangoproject.com/en/1.8/topics/migrations/#dependencies for more
Hello.
Whenever I navigate to quiz/progress, I get a template missing error.
Exception Type: TemplateDoesNotExist
Exception Value: user_previous_exam.html
If that is a known issue, can you please explain what is that template.
Regards.
As a user it would be great if I could set a time limit in which to complete the test, which once the set time elapses the test concludes and the score is generated.
P.S a back and forward button would be really helpful especially when your not 100% sure of an answer
Thanks
I have the code written for this to break down question categorization further.
Using the master branch with Django 1.7.1 & Python 3.4. When I submit the quiz, I'm gettin' a NameError on line 498, "name 'unicode' is not defined", in the quiz/models.py. I altered the line by removing the unicode() but it still gives me the same error, so I'm not sure what's going on there.
I am requesting to add a question type or modifying the existing SBA type to multiple true false with/without penalty for wrong answer type question.
The quesiton will be a multiple true false type. Each question will have 5 stem, each will be tested for true/false. Each will carry partial marks eg. 1 will be awarded for a correct ans. And there will be a system for penalty eg. deduct 0.5 marks for a wrong answer of a stem.
for example:
ques: regarding "A"
candidates will have options for not ticking any stems avoiding penalty.
There should be functionality where user can navigate through questions. Why can't user come back to previous question once answered? What if he wants to change the response afterwards. There must also be a timer to keep track of quiz. I tried implementing it using cookies, and it works fine. Only thing is when timer runs out, (and as the remaining questions are not answered), then the answer paper is not generated. It returns KeyError.
in quiz template result.html is a non translatable string in line 15:
Your answer was
I get anTemplateSyntaxError " 'quiz_tags' is not a valid tag library: Template library quiz_tags not found,".When taking a demo exam.The error source is {% load quiz_tags %} in the template files, line 3.But if that line is deleted it works fine.Is there any other work around and what is the cause.
Thanks
support for django 1.5 ended in 2014
my proposal is to remove django 1.5 from .travis.yml
I cannot find out why I've got this error. Any idea?
Traceback:
File "C:\Python35\lib\site-packages\django\core\handlers\exception.py" in inner
41. response = get_response(request)
File "C:\Python35\lib\site-packages\django\core\handlers\base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "C:\Python35\lib\site-packages\django\core\handlers\base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Python35\lib\site-packages\django\views\generic\base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "C:\mysite\quiz\views.py" in dispatch
155. return super(QuizTake, self).dispatch(request, *args, **kwargs)
File "C:\Python35\lib\site-packages\django\views\generic\base.py" in dispatch
88. return handler(request, *args, **kwargs)
File "C:\Python35\lib\site-packages\django\views\generic\edit.py" in get
174. return self.render_to_response(self.get_context_data())
File "C:\mysite\quiz\views.py" in get_context_data
191. context = super(QuizTake, self).get_context_data(**kwargs)
File "C:\Python35\lib\site-packages\django\views\generic\edit.py" in get_context_data
93. kwargs['form'] = self.get_form()
Exception Type: TypeError at /hell/take/
Exception Value: get_form() missing 1 required positional argument: 'form_class'
The results page should also grade the user on their performance in sub categories as well as the parent categories.
Hi, I'm new with full Django proyects and I have an issue. I downloaded the proyect and did what the README says, but I don't know how to follow.
I will be very thankfull if anyone can help me. Thanks in advance.
Again, I have the code to implement quiz length limits if wanted.
I tweeted concerning putting questions into the Quiz app.Can questions be imported into a mysql
database bypassing the Interface method.Also can i add images to Questions in the Quiz,Thank you.
I' m noob to Django and was trying to run the app. I simply downloaded the app and getting the following error.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/quiz/test1/take/
Django Version: 1.9.1
Python Version: 2.7.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'true_false',
'quiz',
'multichoice',
'essay',
'aetsv_apps_2.agriera_apps.mysite',
'aetsv_apps_2.agriera_apps.myapp']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django/views/generic/base.py" in view
return self.dispatch(request, _args, *_kwargs)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django_quiz_app-0.5.1-py2.7.egg/quiz/views.py" in dispatch
self.quiz)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django_quiz_app-0.5.1-py2.7.egg/quiz/models.py" in user_sitting
sitting = self.new_sitting(user, quiz)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django_quiz_app-0.5.1-py2.7.egg/quiz/models.py" in new_sitting
if len(question_set) == 0:
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django/db/models/query.py" in len
self._fetch_all()
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
self._result_cache = list(self.iterator())
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/model_utils/managers.py" in iterator
sub_obj = self._get_sub_obj_recurse(obj, s)
File "/home/mahesh/anaconda2/lib/python2.7/site-packages/model_utils/managers.py" in _get_sub_obj_recurse
node = getattr(obj, rel)
Exception Type: AttributeError at /quiz/test1/take/
Exception Value: 'long' object has no attribute 'essay_question'
Hello. i tried to add an image to multichoise question. I can see that 'upload' folder is being created and the image is there. How ever the image in the question cannot be displayed. Instead i get an error telling me that image path is wrong. Im not sure what Im doing wrong. Thank u for your help.
I installed the app without changing anything into my project, created a test quiz, but when I press the button Start Quiz, I get an error saying - 'int' object has no attribute 'essay_question'.
Am I doing something wrong? And how could this problem be solved?
Here's the log:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/quiz/introductoryquiz/take/
Django Version: 1.9.1
Python Version: 2.7.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'myapp',
'quiz',
'essay',
'multichoice',
'true_false',
'bootstrapform']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback:
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
149. response = self.process_exception_by_middleware(e, request)
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)
File "/home/john/myapp/quiz/views.py" in dispatch
148. self.quiz)
File "/home/john/myapp/quiz/models.py" in user_sitting
345. sitting = self.new_sitting(user, quiz)
File "/home/john/myapp/quiz/models.py" in new_sitting
316. if len(question_set) == 0:
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
240. self._fetch_all()
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
1074. self._result_cache = list(self.iterator())
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/model_utils/managers.py" in iterator
80. sub_obj = self._get_sub_obj_recurse(obj, s)
File "/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/model_utils/managers.py" in _get_sub_obj_recurse
153. node = getattr(obj, rel)
Exception Type: AttributeError at /quiz/introductoryquiz/take/
Exception Value: 'int' object has no attribute 'essay_question'
Please add a translation for spanish-Colombia (es_CO)
I think adding a duration field for quizzes, specially multiple choice quizzes, would be a nice feature to have. I'm willing to contribute to add this feature.
It would be nice to know owner's/maintainer's views on this. Thanks.
good day, firstly this is a great project, I have learnt quite a bit about django using this project.
my question: is it possible to restrict specific exam subcategories/categories to a group ?
ie. category 1 restrict to group 1 only, group 2 cannot access nor see category 1
Hi,
I run django_quiz on Python 3.4.3, Django 1.8.4, django-model-utils 2.3.1. Source from github installed via setup.py into my virtualenv.
It worked out of the box :)
Multiple choice questions take only one single answer. I changed the widget to CheckboxSelectMultiple which displays fine and offers multiple selections but does not save or evaluate.
Is there a solution to this already? If not, may I have some tipps where to change things?
Hello.
I have been testing this app for using it in an application.
I noticed that there is no template when we navigate to the quiz page i.e. myapp.com/quiz.
Also, is it possible to list all quizzes in a particular category, like myapp.com/quiz/mycategory/ would show all quizzes listed in that category, and upon clicking the link would take me to that quiz.
Is it an issue, or just the features are not implemented? Please let me know.
Regards.
Hello,
I've translated .po files for "fr-FR", but I don't really know how to merge them in the project. I don't even managed to use them on my personnal project.
I join them in this issue so a good samaritan may success where I failed.
I don't care about any attributions.
creating a new category with spaces retunr an error
Exception Type: NoReverseMatch
Exception Value: Reverse for 'quiz_category_list_matching' with arguments '()' and keyword arguments '{'category_name': 'Il corso degli eventi'}' not found. 1 pattern(s) tried: ['it/category/(?P<category_name>[\w.-]+)/$']
quiz/templates/quiz/category_list.html, error at line 11
a solution should be to have 3 fields in quiz_category DB:
subcategory in line 60, 66 and 86 should be sub_category as defined in quiz/models.py
Story: "As a user, when taking a quiz/exam, I'd like to save a question to review later so I can move on to the next question. I'd like to see the list of questions so I can go back and forth or go directly to one specific question and I'd like to see a status showing if the question is answered or marked to review. After I finish answering all the questions (in no particular order), I'd like to click on a button to finish the quiz/exam and go to the results page."
How is it best to approach that, storing in session?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.