add description for media pipeline MEDIA_ALLOW_REDIRECTS and MEDIA_HTTPSTATUS_LIST settings

This commit is contained in:
Bernardas 2016-08-23 16:55:34 +00:00 committed by Paul Tremberth
parent 5d0058492c
commit 25ed491219
1 changed files with 16 additions and 0 deletions

View File

@ -322,6 +322,22 @@ By default, there are no size constraints, so all images are processed.
.. _topics-media-pipeline-override:
Allowing redirection and handling various http statuses
-------------------------------------------------------
.. setting:: MEDIA_ALLOW_REDIRECTS
.. setting:: MEDIA_HTTPSTATUS_LIST
By default media pipelines ignore redirects. To allow redirecting(all 300 codes) set:
MEDIA_ALLOW_REDIRECTS = True
To only allow specific codes through set:
MEDIA_HTTpSTATUS_LIST = <LIST>
# example:
MEDIA_HTTPSTATUS_LIST = [303, 404]
Extending the Media Pipelines
=============================