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.2.tar.gz (97.0 kB view details)

Uploaded Source

Built Distribution

django_mcq-0.2-py3-none-any.whl (102.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django-mcq-0.2.tar.gz
Algorithm Hash digest
SHA256 26b6b7ce5731ba862973c9897cb7b65403e52f442ff65721c8fe36632a582be9
MD5 254c770feb1a90bdeb0f27b3c17d2ac1
BLAKE2b-256 9489ec9513cc7b4f1e57db475a65ab380d624e3f3ddbeb0cd83b6faf739b20f6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for django_mcq-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13769b52a0c33343f638340f5522e793d5a618d7fafee4f5a40dd7e2639e9615
MD5 0a717765ce8969f760b40af7c2dcbb1c
BLAKE2b-256 585ffb3e0987865d54c484c91703a9e48701d394de34cc455e5bdaa07eccc03d

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