meeb/django-distill

HttpResponse content not rendered in distill-local

Closed this issue · 1 comments

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:

content = http_response.content

because http_responseis 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...

meeb commented

This is resolved by commit dedec26. Thanks for the issue and comments.