Re: How do you pass dissimilar data from view to template?

2012-01-28 Thread Jonathan Paugh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think jQuery supports this sort of thing, (as I'm sure other Javascript libs do). Then again, learning Javascript + jQuery together seems at least as hard as learning Python + Django. On 01/27/2012 11:31 AM, BillB1951 wrote: > Thanks for the additio

Re: How do you pass dissimilar data from view to template?

2012-01-27 Thread Thorsten Sanders
If the data is presented as table, datatables is a really nice jquery plugin for such stuff: http://datatables.net/ On 27.01.2012 17:31, BillB1951 wrote: Thanks for the additional thought on this. It is a much appreciated confirmation to me. Last night I was torturing my brain over the logis

Re: How do you pass dissimilar data from view to template?

2012-01-27 Thread BillB1951
Thanks for the additional thought on this. It is a much appreciated confirmation to me. Last night I was torturing my brain over the logistics of what I had conceived, and by this morning I had pretty much concluded that I would have to go the route you are suggesting. Now I just have to find an

Re: How do you pass dissimilar data from view to template?

2012-01-26 Thread BillB1951
Brett, Thanks. That is what I needed. BillB1951 On Jan 26, 4:55 pm, Brett Epps wrote: > It sounds like you're confused about how to add more than one piece of > information to a template.  When you render a template, the template is > given a context, which is a Python dict object.  A dict is a

Re: How do you pass dissimilar data from view to template?

2012-01-26 Thread Brett Epps
It sounds like you're confused about how to add more than one piece of information to a template. When you render a template, the template is given a context, which is a Python dict object. A dict is a bunch of key-value pairs. So, right now, you're probably doing something like: return render_

How do you pass dissimilar data from view to template?

2012-01-26 Thread BillB1951
I am a relatively new to Django, and have just run into a wall, but I am sure this will be a cake walk for you veterans out there. I have a list of items I am displaying in a table in a template. That is no problem I create an object (list of values) in my view send it to the template and render