【发布时间】:2014-10-03 18:35:32
【问题描述】:
我对 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 }}
也不行,有什么想法吗?
【问题讨论】:
标签: python django model processors