在models.py内定义了字段:
tablename= models.CharField(max_length=20 , verbose_name="tablle")
运行时报错:
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
解决:
在models.py开始行加上:# encoding: utf-8
在models.py内定义了字段:
tablename= models.CharField(max_length=20 , verbose_name="tablle")
运行时报错:
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
解决:
在models.py开始行加上:# encoding: utf-8