Thursday, March 29, 2012

Re: is doing text manipulations in django's template faster than doing same in views

If you're doing a lot of operations with your data, there's a chance it should be moved to the view. The template should usually be restricted to defining *how* data gets displayed, whereas the view defines *what* your data is.


Cheers,
AT

On Thu, Mar 29, 2012 at 7:30 AM, vijay shanker <vijay.shanker@contify.com> wrote:
which one is faster or considered better in terms of performance ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment