Django 新手求问

ggborn 2019-03-04 05:31:26


django框架中的StringField无法使用,但可以用CharField,IntegerFiedld


Cannot find reference 'StringField' in '__init__.py' less... (Ctrl+F1)
Inspection info: This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items.

报这个错,不知所云..
...全文
68 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
混沌鳄鱼 2019-03-04
  • 打赏
  • 举报
回复
因为根本没有这个类型。 1-255用CharField, 很长用TextField 就你目前的Python基础太差了,建议先学Python到中级水平,不然不够填坑的。
  • 打赏
  • 举报
回复
改为TextField试试
ggborn 2019-03-04
  • 打赏
  • 举报
回复
不知道为啥显示不出来照片

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧