Skip to content

A Django website to create quiz around the Oscar night

License

Notifications You must be signed in to change notification settings

nortigo/oscarquiz

Repository files navigation

Oscar Quiz

Code style: black

Play with your friends by guessing which movies/actors/directors/etc. will be nominated during the Oscar.

This project expose an API. You will also need to use the front end to connect to this API. You can get the front end here.

How to play?

  1. Create a quiz and set a limit that the players can submit their answers
  2. Add the nominees for each category
  3. Tell your friends to register
  4. Your friends guess the winner of each category before the deadline
  5. Update the board every time a winner is being revealed during the ceremony

The winner is the person who has the most point.

Requirements

  • Python 3.8
  • Django 4
  • Postgresql or the database of your choice :)

Setup

  1. Go to configs/
  2. Copy .env.example to .env
  3. Edit .env and add your own credential
  4. Create virtual environment (you can use pyenv)
  5. Install poetry
  6. Run poetry install

Run the database on docker

docker-compose up -d

Run the project

$ python manage.py runserver

Changelog

2023-02-04:

  • Update to Django 4.1.5
  • Migrate to Restful API
  • Remove all templates

2022-05-19:

  • Replace pipenv with poetry
  • Format code with black
  • Update packages

2021-07-30:

  • Update to Django 3.2.5

2021-03-18:

  • Add Pipenv and environs
  • Update requirements
  • Update settings
  • Add docker

2020-02-21:

  • Update to Django 3.0.3

2020-01-17:

  • Update to Django 3.0.2
  • Update requirements
  • Update settings

2019-12-16:

  • Update to Django 3.0
  • Update requirements
  • Update settings

2019-02-17:

  • Update requirements
  • Remove SECRET_KEY from settings

2018-06-05:

  • Replace self-hosted bootstrap to CDN
  • Update bootstrap to the latest version
  • Update HTML to fit new bootstrap version

2018-03-03:

  • create unique link to send to players
  • remove category model
  • hide form from the other players to avoir cheating