Improved support of Python-3.5 and Django-1.9. Refs #112, refs #113.

This commit is contained in:
Benoît Bryon 2016-03-14 16:24:16 +01:00
parent ec969efa7e
commit 5fecce8017

View file

@ -2,7 +2,7 @@
File wrappers
#############
.. py:module:: django_downloadview.files
.. module:: django_downloadview.files
A view return :class:`~django_downloadview.response.DownloadResponse` which
itself carries a file wrapper. Here are file wrappers distributed by Django
@ -16,15 +16,15 @@ Django's builtins
`Django itself provides some file wrappers`_ you can use within
``django-downloadview``:
* :py:class:`django.core.files.File` wraps a file that live on local
* :class:`django.core.files.File` wraps a file that live on local
filesystem, initialized with a path. ``django-downloadview`` uses this
wrapper in :doc:`/views/path`.
* :py:class:`django.db.models.fields.files.FieldFile` wraps a file that is
* :class:`django.db.models.fields.files.FieldFile` wraps a file that is
managed in a model. ``django-downloadview`` uses this wrapper in
:doc:`/views/object`.
* :py:class:`django.core.files.base.ContentFile` wraps a bytes, string or
* :class:`django.core.files.base.ContentFile` wraps a bytes, string or
unicode object. You may use it with :doc:`VirtualDownloadView
</views/virtual>`.
@ -127,4 +127,4 @@ TextIteratorIO
.. target-notes::
.. _`Django itself provides some file wrappers`:
https://docs.djangoproject.com/en/1.5/ref/files/file/
https://docs.djangoproject.com/en/1.9/ref/files/file/