[Answered ]-Django scheduling

2👍

from django.db import models

class Conference(models.Model):
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    date = models.DateField()
    start_time = models.TimeField()
    end_time = models.TimeField()

Of course, this assumes that a conference starts and ends on the same day and a few other things. This is an extremely simple example, and without seeing any use cases, there’s no way to tell if this is even close to what you need, but will hopefully get you going in the right direction.

0👍

I don’t know anything about django-schedule, but you can just input names, dates, start/end times using a simple Django model with some CharField, DateField, and TimeField members (or DateTimeFields, to support multi-day events). This is very similar to what’s done in the Django tutorial.

If you don’t like the tutorial, there’s also a somewhat-outdated Django Book that might be more to your liking.

👤Danica

Leave a comment