django runserver首次启动时出现问题

django runserver首次启动时出现问题,django,anaconda,Django,Anaconda,通过Pycharm使用Django 3.0。在第一次启动runserver后,我发现以下错误。有人知道吗?项目完全是空的。到目前为止,只完成了“startproject”和“runserver” runserver会启动,但只要我打开链接在浏览器中查看,就会收到以下消息 You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s):

通过Pycharm使用Django 3.0。在第一次启动
runserver
后,我发现以下错误。有人知道吗?项目完全是空的。到目前为止,只完成了“startproject”和“runserver”

runserver会启动,但只要我打开链接在浏览器中查看,就会收到以下消息

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 02, 2020 - 21:37:53
Django version 3.0.3, using settings 'django_devel_app.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[02/Apr/2020 21:37:56] "GET / HTTP/1.1" 200 16351
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 64833)
Traceback (most recent call last):
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 720, in __init__
    self.handle()
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\site-packages\django\core\servers\basehttp.py", line 174, in handle
    self.handle_one_request()
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socket.py", line 669, in readinto
    return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
----------------------------------------
Not Found: /favicon.ico
[02/Apr/2020 21:37:57] "GET /favicon.ico HTTP/1.1" 404 1982
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 64834)
Traceback (most recent call last):
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socketserver.py", line 720, in __init__
    self.handle()
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\site-packages\django\core\servers\basehttp.py", line 174, in handle
    self.handle_one_request()
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "C:\Users\BJS\anaconda3\envs\djangoproject\lib\socket.py", line 669, in readinto
    return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

请尝试此命令,并在其他端口上运行

python manage.py migrate
python manage.py runserver 8001

首先应用迁移非常感谢,更改端口似乎会有所帮助。有一个问题,我仍然会遇到“找不到:/favicon.ico”,我有什么办法可以解决这个问题吗?你是否也知道为什么更改端口似乎有帮助?有时当我的一些程序干扰同一端口时,它会抛出此错误,有时当我们取消浏览器中的加载页面时,会抛出此错误。我相信当你开始一个项目,然后在运行服务器和另一个端口之间出现了一些干扰,这也可能吗?尝试了,但没有成功…我重新设置了所有内容,然后所有内容都使用了旧端口,现在又出现了与上面相同的问题,尝试了不同的端口,但没有显示任何内容->启动项目时我会获得原始页面,但如果我打开其他页面,所有内容都找不到。。。