How to set response headers in DetailView

91 views
Skip to first unread message

Lucas Simon Rodrigues Magalhaes

unread,
Aug 22, 2014, 5:55:34 PM8/22/14
to django...@googlegroups.com
Hello,

I see this tutorial [1] to control the response header and caching of pages in django. 

So I'm trying to enable this response header in a generic class DetailView. I did a search and found this code [2] at the end of the page and also the source code [3] of View. 

But are confused and do not know about which method to override correctly. Does anyone have any tips or example to send me? 



André Luiz

unread,
Aug 22, 2014, 7:29:47 PM8/22/14
to django...@googlegroups.com
I did it two days ago rewriting the render_to_response method.



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d948c6d-34bc-44da-9d1a-534cc373c16d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lucas Simon Rodrigues Magalhaes

unread,
Aug 22, 2014, 7:40:45 PM8/22/14
to django...@googlegroups.com
after much research [1] managed to do this [2] in the ListView class. Now I apply the DetailView. 


Reply all
Reply to author
Forward
0 new messages