def METHOD_NAME(self, key):
    current_snapshot = None
    if self.format not in dict(settings.EXPORT_FORMATS):
        raise CommandError('Format "{}" is not supported for answers.'.format(self.format))
    try:
        view = View.objects.get(key=key)
    except View.DoesNotExist:
        raise CommandError('A view with the key "{}" was not found.'.format(key))
    for project in self.get_queryset():
        context = {
            'project': project,
            'current_snapshot': current_snapshot,
            'view': project.views.get(pk=view.id),
            'rendered_view': view.render(project, snapshot=current_snapshot, export_format=self.format),
            'project_wrapper': ProjectWrapper(project, current_snapshot),
            'title': project.title,
            'format': self.format,
            'resource_path': get_value_path(project, current_snapshot)
        }
        response = render_to_format(None, context['format'], context['title'], 'projects/project_view_export.html', context)
        self.write_file(self.path / str(project.id) / key, response)