N
N
notfallen2015-07-02 15:06:28
Django
notfallen, 2015-07-02 15:06:28

Error "UnicodeDecodeError" when starting the server, what could be the reason for this?

I encountered the following problem: when executing the python manage.py shell and python manage.py runserver commands, I
c82857862cbb4771abf2c5f5109c2767.png
get
the following error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2015-07-02
@sim3x

import os

os.path.join('/home', 'myname', 'dirname', u'поддирректория')

and none path += "ололо"
and start to understand what they wrote to you in the trace

V
Vov Vov, 2015-07-04
@balamut108

I can be wrong, but most likely we are talking about Cyrillic in the project files. To solve the problem, you need to place the following construction at the beginning of the file: # -*- coding: utf-8 -*-

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question