mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Merge pull request #179 from johnthagen/storage-download-docs
Fix StorageDownloadView code snippets
This commit is contained in:
commit
cbd53d813e
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
||||
*************
|
||||
|
|
|
|||
Loading…
Reference in a new issue