def METHOD_NAME(request, user_slug):
    user = get_object_or_404(User, slug=user_slug)
    try:
        digest = generate_daily_digest(user)
    except NotFound:
        raise Http404()
    return HttpResponse(digest)