Drawbacks of Django 'render_to_string' shortcut method

27 views
Skip to first unread message

Rajesh Bk

unread,
Apr 25, 2016, 8:16:01 AM4/25/16
to Django users
Hi All,

Ca you please explain the limitations of Django 'render_to_string' shortcut method if any? Because, we can update the 'html' content easily with this nice method while we encounters in ajax requests.Normally, an ajax only get the response as json format values only, but by using Django 'render_to_string' shortcut method, we can convert html content to string and into json. So, Is there any server loading or response time difference while we compared to other normal json response method?

Please clarify it and give me the proper reason to using this 'render_to_string' shortcut method  to update html content.


Reply all
Reply to author
Forward
0 new messages