关闭

SyntaxError at / Non-ASCII character '\xef' in file D:\Python27\Scripts\HelloWorld\learn\views.py on

标签: django
581人阅读 评论(0) 收藏 举报
分类:

SyntaxErrorat /

Non-ASCII character '\xef' in file D:\Python27\Scripts\HelloWorld\learn\views.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (views.py, line 8)

Request Method:

GET

Request URL:

http://127.0.0.1:8000/

Django Version:

1.8.2

Exception Type:

SyntaxError

Exception Value:

Non-ASCII character '\xef' in file D:\Python27\Scripts\HelloWorld\learn\views.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (views.py, line 8)

Exception Location:

D:\Python27\Scripts\HelloWorld\HelloWorld\urls.py in <module>, line 19

Python Executable:

D:\Python27\python.exe

Python Version:

2.7.11

Python Path:

['D:\\Python27\\Scripts\\HelloWorld',
 'D:\\Python27\\lib\\site-packages\\django-1.8.2-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\django_crontab-0.7.1-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\openpyxl-2.3.4-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\et_xmlfile-1.0.1-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\jdcal-1.2-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\qrcode-5.1-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\six-1.10.0-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\xlwt-1.0.0-py2.7.egg',
 'D:\\Python27\\lib\\site-packages\\boto-2.40.0-py2.7.egg',
 'D:\\Python27\\Scripts\\HelloWorld',
 'C:\\WINDOWS\\SYSTEM32\\python27.zip',
 'D:\\Python27\\DLLs',
 'D:\\Python27\\lib',
 'D:\\Python27\\lib\\plat-win',
 'D:\\Python27\\lib\\lib-tk',
 'D:\\Python27',
 'D:\\Python27\\lib\\site-packages']

Server time:

Wed, 31 Aug 2016 10:10:15 +0800




0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:127054次
    • 积分:1822
    • 等级:
    • 排名:千里之外
    • 原创:74篇
    • 转载:0篇
    • 译文:0篇
    • 评论:11条
    文章分类
    最新评论