def index(request):
service_list = Service.objects.all()<EOL>event_list = list(Event.objects.filter(Q(status__gt=<NUM_LIT:0>) | Q(date_updated__gte=datetime.datetime.now()-datetime.timedelta(days=<NUM_LIT:1>))).order_by('<STR_LIT>')[<NUM_LIT:0>:<NUM_LIT:6>])<EOL>if event_list:<EOL><INDENT>latest_event, event_list = event_list[<NUM_LIT:0>], event_list[<NUM_LIT:1>:]<EOL><DEDENT>else:<EOL><INDENT>latest_event = None<EOL><DEDENT>return respond('<STR_LIT>', {<EOL>'<STR_LIT>': service_list,<EOL>'<STR_LIT>': event_list,<EOL>'<STR_LIT>': latest_event,<EOL>}, request)<EOL>
Displays a list of all services and their current status.