Django ValidationError中的单下划线
2016-04-25 15:44
246 查看
用惯pycharm,结果这个下划线无法自动找到。后来看文档发现其是翻译gettext的简化格式,import方式:
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext as _
相关文章推荐
- 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-环境搭建
- UVa 11292 - Dragon of Loowater(排序贪心)
- UVa 11292 - Dragon of Loowater(排序贪心)
- django中migration文件是干啥的
- 直线光栅画法
- django 使用内建过滤器实现文章摘要效果