Python 如何在django中访问get_context_数据的元素
我试图访问get_context_数据的元素,如:Python 如何在django中访问get_context_数据的元素,python,django,Python,Django,我试图访问get_context_数据的元素,如: context = super(DetallePlanillasContratado,self).get_context_data(**kwargs) 然后以这种方式访问: context['new_context'] = context.element_of_the_context django上有这样的东西吗?context['new\u context']=context['elements\u of the\u context']
context = super(DetallePlanillasContratado,self).get_context_data(**kwargs)
然后以这种方式访问:
context['new_context'] = context.element_of_the_context
django上有这样的东西吗?
context['new\u context']=context['elements\u of the\u context']