Skip to content

Jonatandb/django-htmx-quiz-app

Repository files navigation

Django-HTMX Quiz App

Screenshot01 Screenshot02 Screenshot03 Screenshot04 Screenshot05


  • Create environment (only first time)

    • py -m venv .venv
  • Activate python environment

    • source .venv/Scripts/activate
  • Install dependencies (only first time)

    • pip install -r requirements.txt
  • Run app

    • python manage.py runserver
  • Visit website


  • To load extra data, create a new yaml file following quiz_data.yaml format and execute:
    • python manage.py loaddata quiz_data.yaml
      • New quiz data must have different/consecutive pk's for quiz, question, answer to avoid conflict with existing ones.