def get_file(self):
        return ContentFile(b"Hello world!\n", name='hello-world.txt')
Return :class:`django.core.files.base.ContentFile` object.
dataset/ETHPy150Open benoitbryon/django-downloadview/demo/demoproject/virtual/views.py/TextDownloadView.get_file