I have been looking at many of the posts in here in recent weeks and wanted to ask any djangurus out there a question to clear up some confusion I have. Should I do data manipulation in my views or in templates. After reading much of the django documentation and working with the framework for the last 18 months or so, I have been doing all of my data manipulation within my views, and using the templates simply for formatting the presentation of the data. Many people have been asking about how to modify the data within the template, i.e. a recent post asking about excel calculations within a template. I do not do any of this in my template, I actually have the need to display statistics regarding some data in an app I am writing, but I do all of the calculations within my view and pass the computed values to my template for display. I hope I am not inviting a quasi-religious war on this issue, but I am wonder if people could provide some insight on when or why I should do this sort of thing within the template (via template tag or not) or if I should continue doing that within the view, which not only currently makes sense to me, but I think is what the official documentation suggests.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

