Skip to main content

A configurable quiz app for Django.

Project description

Django Multiple Choice Question

Installation

Install django-mcq

Run pip install django-mcq.

Add 'quiz' to your INSTALLED_APPS setting.

INSTALLED_APPS = (
    ...
    'quiz',
    ...
)

Add the following to your projects urls.py file.

urlpatterns = [
    ...
    path('quiz/', include('quiz.urls')),
]

Create a template quiz_base.html file in templates folder:

<!doctype html>
<html lang="en">
    <head>
        {% block quiz_css %}{% endblock %}
    </head>
    <body>
        {% block quiz_body %}{% endblock %}
        {% block quiz_js %}{% endblock %}
    </body>
</html>

Migrate database:

python manage.py migrate

Load sample quizzes:

python manage.py loaddata sample_quizzes.json

Now login a user and navigate to http://127.0.0.1:8000/quiz/

Packaging pypi

  • delete files in dist folder
  • increment the version number in your setup.py file
  • $ python3 -m build
  • twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-mcq-0.3.tar.gz (97.7 kB view details)

Uploaded Source

Built Distribution

django_mcq-0.3-py3-none-any.whl (103.0 kB view details)

Uploaded Python 3

File details

Details for the file django-mcq-0.3.tar.gz.

File metadata

  • Download URL: django-mcq-0.3.tar.gz
  • Upload date:
  • Size: 97.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for django-mcq-0.3.tar.gz
Algorithm Hash digest
SHA256 fa8d6ee596321dabe3f2f66348bdac2d973c8f6532318aee2f9745d929572522
MD5 a39add4df62286bc654b62ba7679017c
BLAKE2b-256 ba834ca5386fc12cc34f2f861f790ed7fc83d1f58d2ac338c40bdfc79b962faf

See more details on using hashes here.

File details

Details for the file django_mcq-0.3-py3-none-any.whl.

File metadata

  • Download URL: django_mcq-0.3-py3-none-any.whl
  • Upload date:
  • Size: 103.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for django_mcq-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 621c0a00e045ee6df1199379d17a0be35181a3e3ede8e181a3d6c206e34e9f60
MD5 bebdb78febdd4e6bf4034ab0227f9bb5
BLAKE2b-256 945eb46067270940a072e5b4b55e01774f760d82e6822d64447f6729485013c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page