How to get data from another function in view to show it on template ?

34 views
Skip to first unread message

Ravindra Magar

unread,
Apr 4, 2023, 12:43:47 PM4/4/23
to django...@googlegroups.com
How to get data from another function in view to show it on a template?

Shailesh Yadav

unread,
Apr 4, 2023, 1:14:45 PM4/4/23
to django...@googlegroups.com
You can open ChatGPT and type the above question. I'll tell you in detail.Thanks.

Thanks & Regards
Shailesh Yadav

   Linkedin 




On Tue, Apr 4, 2023 at 10:13 PM Ravindra Magar <ravik...@gmail.com> wrote:
How to get data from another function in view to show it on a 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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHMymCCQdHaNrEbZdu2wVo-7-HXy91ohvHURKzVTZWBt8bHAVg%40mail.gmail.com.

Kasper Laudrup

unread,
Apr 4, 2023, 4:30:37 PM4/4/23
to django...@googlegroups.com
On 03/04/2023 18.44, Ravindra Magar wrote:
> How to get data from another function in view to show it on a template?
>

You call the function like you'd call any other function and pass the
data in the context given to the template you want to render.

Kind regards.
Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages