Merge pull request #179 from johnthagen/storage-download-docs

Fix StorageDownloadView code snippets
This commit is contained in:
Rémy HUBSCHER 2021-04-10 18:53:18 +02:00 committed by GitHub
commit cbd53d813e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,20 +18,20 @@ Given a storage:
.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 1, 4-6
:lines: 1, 4-5
Setup a view to stream files in storage:
.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 3-5, 10
:lines: 3-6, 8-9
The view accepts a ``path`` argument you can setup either in ``as_view`` or
via URLconfs:
.. literalinclude:: /../demo/demoproject/storage/urls.py
:language: python
:lines: 1-7, 8-10, 14
:lines: 1-6, 7-11, 17
************
@ -56,7 +56,7 @@ uppercase:
.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 3-5, 13-20
:lines: 3-5, 11-20
*************