"D:\python 3.8\python.exe" D:/PythonWeb/Django/django_demo/manage.py runserver 8000
Watching for file changes with StatReloader
Performing system checks.
System check identified no issues (0 silenced).
You have 18 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.
May 05, 2022 - 21:00:16
Django version 4.0.4, using settings 'django_demo.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 "D:\python 3.8\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "D:\python 3.8\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\python 3.8\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "D:\python 3.8\lib\site-packages\django\core\management\commands\runserver.py", line 158, in inner_run
run(
File "D:\python 3.8\lib\site-packages\django\core\servers\basehttp.py", line 236, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "D:\python 3.8\lib\site-packages\django\core\servers\basehttp.py", line 76, in init
super().init(*args, **kwargs)
File "D:\python 3.8\lib\socketserver.py", line 452, in init
self.server_bind()
File "D:\python 3.8\lib\wsgiref\simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "D:\python 3.8\lib\http\server.py", line 139, in server_bind
self.server_name = socket.getfqdn(host)
File "D:\python 3.8\lib\socket.py", line 756, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 8: invalid start byte
python manage.py runserver会有上述错误 该怎么解决
Your project may not work properly until you apply the migrations for app(s):你有模型有改变没有提交,python manage.py makemigrations yourapp, python manage.py migrate