transition part of particular template to another template

6 views
Skip to first unread message

mohamed khaled

unread,
Oct 13, 2019, 12:20:37 PM10/13/19
to Django users
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 

Motaz Hejaze

unread,
Oct 14, 2019, 5:40:39 AM10/14/19
to django...@googlegroups.com
you need a link to refer to the other view ( html page )

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