In Django, I can do this:
test = Test.objects.get(id=1) test.name
I want to be able to access the properties using dynamically generated st
Assuming name is an attribute on your instance test getattr(test, 'name') should return the corresponding value. Or test.__dict__['name'].
getattr(test, 'name')
test.__dict__['name']
You can read more about getattr() here: http://effbot.org/zone/python-getattr.htm
getattr()