docs: def event(request, slug):
      """
      :param request: Django request object.
      :param event_id: The `id` associated with the event.
      :param is_preview: Should the listing page be generated as a preview? This
                         will allow preview specific actions to be done in the
                         template such as turning off tracking options or adding
                         links to the admin.
      :return: TemplateResponse
      """
      # If this is a preview make sure the user has appropriate permissions.
  
      event = get_object_or_404(models.EventBase.objects.visible(), slug=slug)
  
      context = RequestContext(request, {
          'event': event,
          'page': event,
      })
      # TODO Not sure where the `Event.template` notion comes from, keeping it
      # here for now for backwards compatibility
      template = getattr(event, 'template',  'icekit_events/event.html')
      return TemplateResponse(request, template, context)