from app import app 语句报错
2017-05-05 本文已影响0人
luYao_cc
Traceback (most recent call last): File "manage.py", line 4, infrom app import app
File "/home/study/PycharmProjects/dolist/app/__init__.py", line 4
SyntaxError: Non-ASCII character '\xe5' in file /home/study/PycharmProjects/dolist/app/__init__.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
在代码第一行加上:
#! -*- coding:utf-8 -*-