O
O
oventarb2015-04-10 16:15:48
Django
oventarb, 2015-04-10 16:15:48

How to fix an error when starting a simple Django application?

How to fix an error when starting a simple Django application?
I do I
python.exe manage.py runserver
get

Performing system checks...

System check identified no issues (0 silenced).
April 10, 2015 - 16:01:58
Django version 1.8, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x02B4DE88>
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\django-1.8-py3.4.egg\django\utils\autoreload.py", line 223, in wrapper
    fn(*args, **kwargs)
  File "C:\Python34\lib\site-packages\django-1.8-py3.4.egg\django\core\management\commands\runserver.py", line 139, in inner_run
    ipv6=self.use_ipv6, threading=threading)
  File "C:\Python34\lib\site-packages\django-1.8-py3.4.egg\django\core\servers\basehttp.py", line 191, in run
    httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
  File "C:\Python34\lib\site-packages\django-1.8-py3.4.egg\django\core\servers\basehttp.py", line 76, in __init__
    super(WSGIServer, self).__init__(*args, **kwargs)
  File "C:\Python34\lib\socketserver.py", line 429, in __init__
    self.server_bind()
  File "C:\Python34\lib\site-packages\django-1.8-py3.4.egg\django\core\servers\basehttp.py", line 80, in server_bind
    super(WSGIServer, self).server_bind()
  File "C:\Python34\lib\wsgiref\simple_server.py", line 50, in server_bind
    HTTPServer.server_bind(self)
  File "C:\Python34\lib\http\server.py", line 135, in server_bind
    self.server_name = socket.getfqdn(host)
  File "C:\Python34\lib\socket.py", line 460, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byte

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Dzhur, 2015-04-10
@oventarb

If you have Win7, then I advise you to try like this:
At least for version 1.7 it helped

R
raiboon, 2015-04-10
@raiboon

Do you happen to have a Venda with a Cyrillic computer name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question