Monday, October 14, 2019

Re: transition part of particular template to another template

you need a link to refer to the other view ( html page )

On Sun, Oct 13, 2019 at 6:20 PM mohamed khaled <mohamed.khaled33388@gmail.com> wrote:
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.

--
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/CAHV4E-fP3cnVMR08HOjSWK8DQf5TnOBpiiO1FKoRv95HsK-C-g%40mail.gmail.com.

No comments:

Post a Comment