Friday, August 22, 2014

Re: How to set response headers in DetailView

I did it two days ago rewriting the render_to_response method.



2014-08-22 18:55 GMT-03:00 Lucas Simon Rodrigues Magalhaes <lucassrod@gmail.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? 



--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAL6LtmdgwpD5eyjOZUNXGbqPgUrNyLZEAhDMHUGiNBkE0A1Fqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment