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
distfolder - increment the version number in your
setup.pyfile $ python3 -m buildtwine upload dist/*
Metadata
Release files for django-mcq 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-mcq-0.4.tar.gz | 98.3 kB | Without provenance | Details for django-mcq-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_mcq-0.4-py3-none-any.whl | Python 3 | none | any | Details for django_mcq-0.4-py3-none-any.whl |
Total release size: 202.2 kB
Release files / django-mcq-0.4.tar.gz
| Download URL | django-mcq-0.4.tar.gz |
|---|---|
| Size | 98.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d167c8c92506475f7409ba41acf05dd715274a3a432a825c16c0535b7af091c
|
|
BLAKE2b-256 checksum How to use checksums |
5f0e0cfbebc63c3b6788cf93758ede92083479892263e6ac743e8a7675cc83d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / django_mcq-0.4-py3-none-any.whl
| Download URL | django_mcq-0.4-py3-none-any.whl |
|---|---|
| Size | 103.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cb987942e2e4a615af5370a11ebad5938dd5f5a2fc3e07a8b7c7b8166a86ef1
|
|
BLAKE2b-256 checksum How to use checksums |
695584cae084ac560a6b1e79bec523c789452bc0d33593297af72bf4c088c0d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for django-mcq 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.