HttpResponse content not rendered in distill-local
Closed this issue · 1 comments
henhuy commented
When using distill-local
I became following error:
django.template.response.ContentNotRenderedError: The response content must be rendered before it can be accessed.
in line:
django-distill/django_distill/renderer.py
Line 199 in ea6132b
because
http_response
is not rendered yet.After adding
http_response.render()
before that line, everything seems to work and distilled files are generated...Is this fix correct?
I will post simple PR...