S
S
sydyk2020-01-01 17:12:35
Django
sydyk, 2020-01-01 17:12:35

Can't start server via python manage.py runserver. I can't figure out what the problem is. Who can advise?

I did a migration but it still doesn't help. Can't open server in browser

(venv) C:\Users\Admin\PycharmProjects\Pyshop>python manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  No migrations to apply.

(venv) C:\Users\Admin\PycharmProjects\Pyshop>python manage.py makemigrations
No changes detected

(venv) C:\Users\Admin\PycharmProjects\Pyshop>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
January 01, 2020 - 20:11:05
Django version 3.0.1, using settings 'pyshop.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "C:\python37\lib\threading.py", line 917, in _bootstrap_inner
    self.run()
  File "C:\python37\lib\threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Admin\PycharmProjects\Pyshop\venv\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
    fn(*args, **kwargs)
  File "C:\Users\Admin\PycharmProjects\Pyshop\venv\lib\site-packages\django\core\management\commands\runserver.py", line 139, in inner_run
    ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
  File "C:\Users\Admin\PycharmProjects\Pyshop\venv\lib\site-packages\django\core\servers\basehttp.py", line 206, in run
    httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
  File "C:\Users\Admin\PycharmProjects\Pyshop\venv\lib\site-packages\django\core\servers\basehttp.py", line 67, in __init__
    super().__init__(*args, **kwargs)
  File "C:\python37\lib\socketserver.py", line 452, in __init__
    self.server_bind()
  File "C:\python37\lib\wsgiref\simple_server.py", line 50, in server_bind
    HTTPServer.server_bind(self)
  File "C:\python37\lib\http\server.py", line 139, in server_bind
    self.server_name = socket.getfqdn(host)
  File "C:\python37\lib\socket.py", line 676, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 6: invalid continuation byte

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-01-01
@bacon

Never was and here again, learn to search already. The answer is the name of the computer in Cyrillic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question