2
respostas

SyntaxError

SyntaxError at / Non-ASCII character '\xc3' in file /Users/welintonfer/Documents/connectedin/perfis/views.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (views.py, line 5) Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.7.4 Exception Type: SyntaxError Exception Value:Non-ASCII character '\xc3' in file /Users/welintonfer/Documents/connectedin/perfis/views.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (views.py, line 5) Exception Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py in import_module, line 37 Python Executable: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Python Version: 2.7.12 Python Path:['/Users/welintonfer/Documents/connectedin', '/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC'] Server time: Fri, 14 Dec 2018 21:47:31 +0000

2 respostas

coloca na primeira linha do seu arquivo

# -*- coding: utf-8 -*-

coloca o codigo aqui pra gente analisar!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software