Hi Django Users,
I want to make a custom template tag where the tag's renderer needs to make
a POST request.
https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/#writing-the-renderer
https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/#thread-safety-considerations
Is
, put
> the return value in the context. The template isn't a good place to
> have logic. It should only take data and format them.
>
> 2016-09-01 5:33 GMT+02:00 Al Johri >:
> > Hi Django Users,
> >
> > I want to make a custom template tag wher
wrote:
>
> Hi All,
> There is no valuable reason to do it in the template. And no matter how to
> ate using it, cause template should only present view model(s).
>
> But if you tell us your intention may be we can suggest a better place for
> such request?
>
> R
3 matches
Mail list logo