def METHOD_NAME(request, user_slug):
    if user_slug == "me":
        return redirect("profile_settings", request.me.slug, permanent=False)
    user = get_object_or_404(User, slug=user_slug)
    if user.id != request.me.id and not request.me.is_moderator:
        raise Http404()
    return render(request, "users/edit/index.html", {"user": user})