Hello
I, a newbie to Django and Python, have a model thus:
class Person(model.Models):
first_name = models.CharField(max_length=32)
last_name = models.CharField(max_length=32)
In my view.py can do this, to illustrate my question:
def testing(request):
persons = Person.objects.all()
print "persons=", persons #prints OK
print "the value in the third column of the second row is ", ??
what goes here??
return render_to_response('xyz/testing.html', {'persons':
persons})
I imagine there is a way to do this, surely, otherwise how can I use
ifchanged in my template. I have battled this for days, got various
responses from various esteemed sources, but I don't get it. Any help
available as in "the answer is..." ? Your patience is appreciated.
Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---