From b13366447c1dfba37dd6c6fd10c03571a4b06a40 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 9 Sep 2025 22:31:43 +0200 Subject: [PATCH] add quiz app, upgrade uswgi --- app/settings.py | 4 ++++ env/dev.yml | 3 +++ poetry.lock | 42 ++++++++++++++++++++++++++++++++++++++---- pyproject.toml | 3 ++- 4 files changed, 47 insertions(+), 5 deletions(-) diff --git a/app/settings.py b/app/settings.py index 83038fe4..f26fd88b 100644 --- a/app/settings.py +++ b/app/settings.py @@ -335,6 +335,10 @@ INSTALLED_APPS = ( 'rest_framework', 'rest_framework.authtoken', 'storages', + 'quiz', + 'multichoice', + 'true_false', + 'essay', ) diff --git a/env/dev.yml b/env/dev.yml index 7da2ef45..971a86cb 100644 --- a/env/dev.yml +++ b/env/dev.yml @@ -25,6 +25,9 @@ services: - 'env/debug.env' ports: - "9000:8000" + volumes: + - ./pyproject.toml:/srv/pyproject.toml + - ./poetry.lock:/srv/poetry.lock channels: build: diff --git a/poetry.lock b/poetry.lock index aef9463c..880add7c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "aioredis" @@ -713,6 +713,20 @@ files = [ Django = ">=1.0" six = "*" +[[package]] +name = "django-model-utils" +version = "5.0.0" +description = "Django model mixins and utilities" +optional = false +python-versions = ">=3.8" +files = [ + {file = "django_model_utils-5.0.0-py3-none-any.whl", hash = "sha256:fec78e6c323d565a221f7c4edc703f4567d7bb1caeafe1acd16a80c5ff82056b"}, + {file = "django_model_utils-5.0.0.tar.gz", hash = "sha256:041cdd6230d2fbf6cd943e1969318bce762272077f4ecd333ab2263924b4e5eb"}, +] + +[package.dependencies] +Django = ">=3.2" + [[package]] name = "django-nvd3" version = "0.9.7" @@ -739,6 +753,26 @@ files = [ [package.dependencies] Django = "*" +[[package]] +name = "django-quiz-app" +version = "0.5.1" +description = "A configurable quiz app for Django." +optional = false +python-versions = "*" +files = [] +develop = false + +[package.dependencies] +Django = ">=1.5.1" +django-model-utils = ">=2.0.3" +Pillow = ">=2.5.0" + +[package.source] +type = "git" +url = "https://github.com/pilot-systems/Django-Quiz.git" +reference = "HEAD" +resolved_reference = "414ffcec05588d41652cdd1799706abccad9b8b7" + [[package]] name = "django-recaptcha" version = "2.0.6" @@ -2315,12 +2349,12 @@ test = ["aiohttp (>=3.10.5)", "flake8 (>=5.0,<6.0)", "mypy (>=0.800)", "psutil", [[package]] name = "uwsgi" -version = "2.0.25.1" +version = "2.0.30" description = "The uWSGI server" optional = false python-versions = "*" files = [ - {file = "uwsgi-2.0.25.1.tar.gz", hash = "sha256:d653d2d804c194c8cbe2585fa56efa2650313ae75c686a9d7931374d4dfbfc6e"}, + {file = "uwsgi-2.0.30.tar.gz", hash = "sha256:c12aa652124f062ac216077da59f6d247bd7ef938234445881552e58afb1eb5f"}, ] [[package]] @@ -2645,4 +2679,4 @@ testing = ["coverage[toml]", "zope.event", "zope.testing"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "6bc6cbf6fbe9ed773cacf9451ece9f8e29997e5426ad0dddb40529ea90a7bf3c" +content-hash = "75063f62ed7197ea62b66b4106181196aeeeeb8c0513c3e3ae15173e4d52d6f5" diff --git a/pyproject.toml b/pyproject.toml index a4e6143f..2b7e5943 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,13 +36,14 @@ xlrd = "2.0.1" xlwt = "1.3.0" psycopg2 = "2.8.6" redis = "3.5.3" -uwsgi = "2.0.25.1" +uwsgi = "2.0.30" uvicorn = {version = "0.18.1", extras = ["standard"]} httpx = "0.23.3" django-storages = {extras = ["s3"], version = "^1.14.2"} boto3 = "^1.34.89" ipython = "^8.23.0" reportlab = "^4.2.0" +django-quiz-app = {git = "https://github.com/pilot-systems/Django-Quiz.git"} [build-system] -- 2.39.5