Skip to main content
ALPHA    This is new software undergoing tests! Thank you for your patience.

Candidate: tim osahenru tim

Python (2023) ~ Grade 6 (Transitional)

A simple and fast way to engage your audience for your event

something like Slido, but easy to use with no signup or much technicalities

Status: Open. Expires after: Sun 30 Jun 2024.


tim tim osahenru ~ 14 Apr 2024 3:46 p.m.

So I think it is going to be a fairly straight forward project, spent a couple of hours thinking about the database relationships for the models, we can keep things simple this way and later build upon this basic

from django.db import models


class Event(models.Model):
    name = models.CharField(max_length=50)

    def __str__(self):
        return self.name


class Question(models.Model):
    event = models.ForeignKey(Event, on_delete=models.CASCADE)
    text = models.CharField(max_length=255)

    def __str__(self):
        return self.text

Back to top