After setting up all what django
requires, I tried the runserver
command and I caught an error:
UnicodeDecodeError
This sounds like this Python issue. If your computer name has non-ASCII characters this will fail. You may:
python manage.py runserver 127.0.0.1:8000
I hit this issue on python 3.4 with the following situation :
host1
)After adding the following entry to the /etc/hosts
file, no further UnicodeDecodeError
exceptions were thrown.
127.0.0.1 localhost host1
I just had this issue because I accidentally visited the site with https instead of http. Switching back to http fixed it.