I just switched from using a Django application under Python 3 to using Python 2.7. Now I get this error:
SyntaxError: Non-ASCII character '\xe2' in file /Users/user/Documents/workspace/testpro/testpro/apps/common/models/vendor.py on line 9, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
The code referencing it is just a comment:
class Vendor(BaseModel):
"""
A company manages owns one of more stores.โ
"""
name = models.CharField(max_length=255)
def __unicode__(self):
return self.name
Why?
It works:
class Vendor(BaseModel):
"""
"""
name = models.CharField(max_length=255)
def __unicode__(self):
return self.name
source
share