【发布时间】:2017-09-04 10:13:30
【问题描述】:
我在views.py中有一个方法如下:
def index(self, request):
initial = get_initial()
context = {"context" : initial_topics}
template = loader.get_template('index.html')
return HttpResponse(template.render(context, request))
如何在 javascript 中访问“上下文”字典? 就像我的 $(function(){});
【问题讨论】:
标签: javascript python django