context['week'] = week = int(week) if week is not None else datetime.today().isocalendar()[1]
context['year'] = year = int(year) if year is not None else datetime.today().isocalendar()[0]
+ if context['week'] > 53:
+ raise Http404()
context['week_first_day'] = utils.tofirstdayinisoweek(year, week)
context['week_last_day'] = context['week_first_day'] + timedelta(days=6)