def service(request, slug):
try:<EOL><INDENT>service = Service.objects.get(slug=slug)<EOL><DEDENT>except Service.DoesNotExist:<EOL><INDENT>return HttpResponseRedirect(reverse('<STR_LIT>'))<EOL><DEDENT>event_list = service.event_set.order_by('<STR_LIT>')<EOL>return respond('<STR_LIT>', {<EOL>'<STR_LIT>': service,<EOL>'<STR_LIT>': event_list,<EOL>}, request)<EOL>
Displays a list of all services and their current status.