yes , its like a temporary variable created when template loads

On Sun, Oct 13, 2019 at 4:03 PM mohamed khaled <
mohamed.khaled33...@gmail.com> wrote:

> {% with comments.count as total_comments %}
> the with tag is like a create variable but in the Django template instead
> of using  *comments.count  *many times  we use a short like variable. Is
> that right or not ??
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/55e13980-9938-4b66-b0e1-9cd84e293650%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/55e13980-9938-4b66-b0e1-9cd84e293650%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-eauczEqMh0yDOmZvvigtUFbFt1%3DQNUnE2paHRo72FsaQ%40mail.gmail.com.

Reply via email to