当前位置:网站首页>Context must be a dict rater solution
Context must be a dict rater solution
2022-07-25 05:45:00 【Shura_】
Original code
def depart_edit(request, nid):
# Revision Department
# According to the obtained nid Query the database
row = models.Department.objects.filter(id=nid).first()
# Forward data row To depart_edit.html
return render(request, 'depart_edit.html', row)
Finally, I found out the problem render() The third parameter should be in object form
def depart_edit(request, nid):
# Revision Department
# According to the obtained nid Query the database
row = models.Department.objects.filter(id=nid).first()
# Forward data row To depart_edit.html
return render(request, 'depart_edit.html', {
"row":row})
Perfect solution
边栏推荐
- Is the Huatai account opened by qiniu safe to use?
- After Oracle user a deletes a table under user B's name, can user B recover the deleted table through the recycle bin?
- 线性代数(三)
- Please stop using system The currenttimemillis() statistical code is time-consuming, which is really too low!
- 2020icpc Jiangxi warm up e.robot sends red packets (DFS)
- Xiaomi 12s UTRA Leica watermark generation online tool
- (2022牛客多校)D-Link with Game Glitch(spfa)
- QT qtextedit setting qscrollbar style sheet does not take effect solution
- 剑指 Offer 32 - I. 从上到下打印二叉树
- Analyzing the principle of DNS resolution in kubernetes cluster
猜你喜欢

Ffmpeg notes (I) fundamentals of audio and video

Linear algebra (3)

HTB-Devel
![Atof(), atoi(), atol() functions [detailed]](/img/5a/a421eab897061c61467c272f122202.jpg)
Atof(), atoi(), atol() functions [detailed]

C编程 --“最大子数组的和” 的动态规划的解法

Adaptation dynamics | in June, sequoiadb completed mutual certification with five products

求求你别再用 System.currentTimeMillis() 统计代码耗时了,真的太 Low 了!

Microservice gateway component
![(14)[驱动开发]配置环境 VS2019 + WDK10 写 xp驱动](/img/90/0d94d26be8128d77de65919763fda5.png)
(14)[驱动开发]配置环境 VS2019 + WDK10 写 xp驱动

剑指 Offer 05. 替换空格
随机推荐
Microservice - remote invocation (feign component)
(16)[系统调用]追踪系统调用(3环)
HTB-Devel
Common methods of JS operation array
Adaptation dynamics | in June, sequoiadb completed mutual certification with five products
R language ggpubr package ggarrange function combines multiple images and annotates_ Figure add annotation, annotation, annotation information for the combined image, and use the right parameter to ad
HTB-Beep
Matlab drawing example: 5: Biaxial graph
Msys2 common configuration
Arm PWN basic tutorial
PMP Exam is easy to confuse concept discrimination skills! Don't lose points after reading!
The difference between $write and $display in SystemVerilog
Mechanism and principle of multihead attention and masked attention
(2022年牛客多校一)I-Chiitoitsu(期望DP)
Siggraph 2022 -- rendering iridescent rock dove neck feathers
(2022牛客多校二)L-Link with Level Editor I(动态规划)
50:第五章:开发admin管理服务:3:开发【查询admin用户名是否已存在,接口】;(这个接口需要登录时才能调用;所以我们编写了拦截器,让其拦截请求,判断用户是否是登录状态;)
HTB-Arctic
(牛客多校二)J-Link with Arithmetic Progression(最小二乘法/三分)
2020icpc Jiangxi warm up e.robot sends red packets (DFS)