def index(request): """The view that gets brought up if you navigate to 'schedule'. Currently this just gets the weekly schedule for the current week. """ return schedule_week_from_date( request, ury_start_on_date(to_monday(datetime.utcnow())))
def schedule_day(request, year, month, day): """The day-in-detail schedule view, with the day provided in Year/Month/Day format. """ return schedule_day_from_date( request, ury_start_on_date(date( year=int(year), month=int(month), day=int(day))))
def today(request): """A view that shows the day schedule for today.""" return schedule_day_from_date( request, ury_start_on_date(timezone.now()))