Python是解释执行的,只要你写的代码没有语法问题,运行的时候是不会报错的,只有执行到那一步,比如没有这个方法,变量没有定义等等,才会报错。另外,Python自带的...更多关于Django出现'CharField' object has no attribute 'model'怎么解决?的问题>>
2016年3月7日 - /django/db/models/fields/__init__.py", line 187, in __str__ model = self.model AttributeError: 'CharField' object has no attribute 'model'...
2016年3月7日 - /django/db/models/fields/__init__.py", line 187, in __str__ model = self.model AttributeError: 'CharField' object has no attribute 'model'...