Django模板之顯示字典中內容

項目結構html views.py搜索引擎 def home3(request): info_dict = {'site': u'百度', 'content': u'搜索引擎'} return render(request, 'home3.html', {'info_dict': info_dict}) url.py home3.htmlurl <!DOCTYPE html> <h
相關文章
相關標籤/搜索