У меня не запускается сервер на Django.В консоли все сделал как в видеоуроках по Django,создал папку проекта через консоль (django-admin startproject myfirst), потом перешел в папку myfirst где лежал файл manage.py, ввел в консоли "python manage.py runserver" и выдало ошибку:
D:\MySiite\myfirst>python 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.
August 31, 2019 - 02:20:26
Django version 2.2.4, using settings 'myfirst.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 "D:\Python 3\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "D:\Python 3\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\Python 3\lib\site-packages\django\utils\autoreload.py", line 54, in w
rapper
fn(*args, **kwargs)
File "D:\Python 3\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 "D:\Python 3\lib\site-packages\django\core\servers\basehttp.py", line 203
, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "D:\Python 3\lib\site-packages\django\core\servers\basehttp.py", line 67,
in __init__
super().__init__(*args, **kwargs)
File "D:\Python 3\lib\socketserver.py", line 452, in __init__
self.server_bind()
File "D:\Python 3\lib\wsgiref\simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "D:\Python 3\lib\http\server.py", line 139, in server_bind
self.server_name = socket.getfqdn(host)
File "D:\Python 3\lib\socket.py", line 676, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 0: invalid
start byte
P.S: Запускал через консоль (OS Windows 7)
В пути к проекту нет кириллицы (D:\MySiite\myfirst)