求教:django自带服务器启动失败
django吧
全部回复
仅看楼主
level 1
D:\python_dome\django\myblog>python manage.py runserver 999
Performing system checks...
System check identified no issues (0 silenced).
You have 13 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 22, 2017 - 11:18:52
Django version 1.11.4, using settings 'myblog.settings'
Starting development server at http://127.0.0.1:999/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x05F93420>
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\management\commands\runserver.py", line 149, in inner_run
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\servers\basehttp.py", line 164, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\servers\basehttp.py", line 74, in __init__
super(WSGIServer, self).__init__(*args, **kwargs)
File "C:\Program Files (x86)\Python36-32\lib\socketserver.py", line 453, in __init__
self.server_bind()
File "C:\Program Files (x86)\Python36-32\lib\wsgiref\simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "C:\Program Files (x86)\Python36-32\lib\http\server.py", line 138, in server_bind
self.server_name = socket.getfqdn(host)
File "C:\Program Files (x86)\Python36-32\lib\socket.py", line 673, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 2: invalid continuation byte
机器是64位 win10
2017年08月22日 04点08分 1
level 2
你计算机名称是中文吧 改成英文就好了
2017年08月26日 16点08分 3
膜拜大神[真棒]
2017年12月25日 01点12分
膜拜大神
2018年07月09日 06点07分
我计算机名称是英文的,运行Django一直是提示如下报错:Performing system checks...System check identified no issues (0 silenced).
2018年12月26日 01点12分
level 1
settings.py里面有中文?包括注释,去掉试一下
2017年08月29日 02点08分 4
level 1
升楼主问题解决了吗 我今天刚发现这个问题不知道该怎么办 刚开始服务器是能启动了的
2017年12月24日 15点12分 5
level 1
我的和你的一样的错误,都改了,为什么还是不行
2018年01月02日 02点01分 6
level 1
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 2: invalid continuation byte
应该是你在某个文件中写了中文。包括注释如果有中文在开头要 加 # -*- coding: utf-8 -*-
2018年01月22日 05点01分 7
你计算机名称是中文吧 改成英文就好了
2018年07月09日 06点07分
level 6
是中文编码的问题
2018年04月02日 14点04分 8
1