I have just switched from using running a Django App under Python 3 to Using Python 2.7. I now 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 its referring to 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?
This works:
class Vendor(BaseModel):
"""
"""
name = models.CharField(max_length=255)
def __unicode__(self):
return self.name