{{Peoples}} django 模板未在 html 页面中渲染我的后端数据

问题描述 投票:0回答:1

enter image description hereenter image description here

(https://i.stack.imgur.com/dXn0b.png)

in my views.py I have written function with dictionary in it u can see in image which is

in my html page I have written code of html and pass the variable of django with {{peoples}}

but it is not rendering in my live server   and I have attached all of my code images 

html django django-views django-templates
1个回答
0
投票

您无法渲染通过实时服务器在视图中传递的上下文参数值。

要呈现该值,请在本地计算机中运行 django 开发服务器,转到终端中的主项目目录

python manage.py runserver

转到相应的 url 以查看呈现的上下文值。

© www.soinside.com 2019 - 2024. All rights reserved.