2👍
✅
It should behave the same way as render_to_string()
, which is: choose the first that exists.
👤lqc
-1👍
TemplateResponse objects retain the details of the template and context that was provided by the view to compute the response. So its controlled by View.
You can also override this method SimpleTemplateResponse.resolve_template(template) to customize the template rendering
Ref:
https://docs.djangoproject.com/en/dev/ref/template-response/
- [Answer]-Heliohost and django hosting and deployment from bitbucket
- [Answer]-Python- Use set on a List of objects <class 'xyz.models.abc'>
- [Answer]-Multiple sites in django with nginx and fcgi
- [Answer]-Want to make sure object not in queryset before adding it
- [Answer]-Why is context processor adding to every view in django?
Source:stackexchange.com