我对 django 有疑问在我的 views.py 中我有这个
def home(request):
template = "index.html"
test = "hello"
Settings = settings.objects.all()
return render_to_response(template ,{"Settings" : settings}, context_instance=RequestContext(request))
在我的 index.html 中
{{test}}
但它不返回任何东西如果我写的话,我的模型还有一个名为 logo_img 的字段
{{ Settings.logo_img }}
也不起作用,有什么想法吗?