Sunday, October 13, 2019

transition part of particular template to another template

I want to take the result from detail.html to list.html 

in detail.html


{% with comments.count as count  %}
{{count}} Comment{{count|pluralize}}
{% endwith %}


in list.html 
I want to add the result of detail.html only I don't need to render all rest of html I just need this block. I can't use extend or include it because if I use it. it will render all template from the parent template 

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fee7adcf-4d02-4db5-ab3f-a876c37c36df%40googlegroups.com.

No comments:

Post a Comment