How can I get my rendered html text in django? I need it because I want to use the html text in another template variable. My site has a main template and it has two part one is content and other is a column for links and ... . In content I want to put my rendered html such as sign in forms, new posts and ... . How can I do that? A part of my code is here:
def loginfrm(request):
return render(request,'main.html',
{'content':renderdhtmltext()),
'colum':'links',}
My exact purpose is to define a function like renderdhtmltext().
And is there any django built in for that?