Monday, April 25, 2016

Drawbacks of Django 'render_to_string' shortcut method

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.


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cf36ec2e-11b4-40e1-9623-c79a4e6f17c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment