django 模板if判断的时候==两边需要有空格
2016-04-25 17:23
399 查看
比如 {%if a=='y'%}错误,{%if a =='y'%}也是错误的
只能是{%if a == 'y'%}这样才行
只能是{%if a == 'y'%}这样才行
相关文章推荐
- ContentNegotiatingViewResolver解析器
- URAL 1851|GOV-internship|最小割
- django migrate error: table 'xxx' already exists
- mongoose使用简记
- Django ValidationError中的单下划线
- category的介绍与简单实用
- Git Step By Step - Step 2: Go Back in Time
- golang中的类和接口的使用
- Golang Basic - select and channel usage
- OnePointThreeAcres Google/April -1
- Goldengate实验:源端目标端字符集不同
- goldengate关于CONVERTUCS2CLOBS参数
- Mongo DB 2.6 需要知道的一些自身限定
- Go语言为什么这么流行?
- 设计模式-GoF
- win7 系统无法加入域---提示1058错误--同时netlogon服务一直无法启动的解决办法
- Django REST framework
- HDU 5512 Pagodas 2015ACM/ICPC亚洲区沈阳站-重现赛(感谢东北大学)
- Django学习-000
- Django学习-001-环境搭建