#21179: How-to output CSV from Django should suggest using 
`StreamingHttpResponse`
--------------------------------------+------------------------------------
     Reporter:  charettes             |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:  afraid-to-commit      |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  1
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by charettes):

 Thinking about it I must agree that without server-side cursor support
 (#16614) the tradeoff is not worth turning the simple example into a
 overly complex one.

 I just thought it was odd that `StreamingHttpResponse`'s documentation
 mentions that ''it’s useful for generating large CSV files'' but
 [https://docs.djangoproject.com/en/dev/howto/outputting-csv/ our provided
 tutorial] doesn't even mention it.

 What do you guys think of adding an admonition with no specific example to
 the ''how-to'' explaining `StreamingHttpResponse` might be useful in this
 case?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21179#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.e1be4c6047209862d523d76768de3108%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to