[Answered ]-How can i use variable in django while accessing models 23 December 2023 by thecoderscamp.com 2👍 for key in keys: print getattr(obj.subobj, key) 👤Pavel Anossov [Answered ]-Django website accessible to others just for testing Source:stackexchange.com