Этот вопрос закрыт для ответов, так как повторяет вопрос Почему django не работает?
@Nejtron

Почему runserver не работает?

spoiler
D:\django\mysite>py manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you
apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
April 07, 2020 - 19:02:12
Django version 3.0.5, using settings 'mysite.settings'
Starting development server at 127.0.0.1:8000
Quit the server with CTRL-BREAK.
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\threading.py",
line 932, in _bootstrap_inner
self.run()
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\threading.py",
line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
django\core\management\commands\runserver.py", line 138, in inner_run
run(self.addr, int(self.port), handler,
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
django\core\servers\basehttp.py", line 206, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
django\core\servers\basehttp.py", line 67, in __init__
super().__init__(*args, **kwargs)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\socketserver.p
y", line 452, in __init__
self.server_bind()
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\wsgiref\simple
_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\http\server.py
", line 139, in server_bind
self.server_name = socket.getfqdn(host)
File "C:\Users\SK\AppData\Local\Programs\Python\Python38-32\lib\socket.py", li
ne 756, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 3: invalid
continuation byte

localhost:8000 или 127.0.0.1:8000 говорят, что не удаётся получить доступ к сайту.
  • Вопрос задан
  • 68 просмотров
Ваш ответ на вопрос

Вопрос закрыт для ответов и комментариев

Потому что уже есть похожий вопрос.
Похожие вопросы