Django runserver does not work

Asked

Viewed 1,016 times

1

The command: python Manage.py runserver 80

Returns the following: (I put screenshot, because the text is defaced here)

inserir a descrição da imagem aqui

The localhost address is inaccessible regardless of the port (8080, 8000, 80)

From what I understand, it is a charset/encounter error, but I found no solution for it.

  • To not "deface" the message, simply put it in code format.

  • @Sidon I tried and gave anyway, so I sent the screenshot.

  • I believe it must be something from Jango himself, I’m having the same error en.stackoverflow.com/questions/219916/error-no-Jango-Unicode-Decode-error? noredirect=1#comment451593_219916 ( Add code for better indexing instead of image )

  • @Walter See Sidon’s response. I changed the name of the computer and it worked.

1 answer

1


It seems to be a known python bug, where the runserver fails when the hostname contains "non-ASCII" characters, try one of the two alternatives:

1) Call runserver by spelling out the port and host:

python manage.py runserver 127.0.0.1:8000

Or:

2) Rename the computer to a string that contains only ascii characters.

  • That’s right. Thank you very much, Sidon!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.