Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using html-min with TemplateView class #109

Open
khs123 opened this issue Nov 15, 2016 · 1 comment
Open

Using html-min with TemplateView class #109

khs123 opened this issue Nov 15, 2016 · 1 comment
Labels

Comments

@khs123
Copy link

khs123 commented Nov 15, 2016

I using TemplateView render response but when i used django-html to minify html template but django raise exception .
I using decorator minified_response as instructed:

https://docs.djangoproject.com/en/dev/topics/class-based-views/intro/#decorating-class-based-views
But, not success. It raises errors

django.template.response.ContentNotRenderedError: The response content must be rendered before it can be accessed.

How can use django-htmlmin with TemplateView ?

@khs123 khs123 changed the title Using html-min with TemplateTemplateView Using html-min with TemplateView class Nov 15, 2016
@candidosouza
Copy link

error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants