【发布时间】:2020-09-16 21:39:04
【问题描述】:
命令 python manage.py runserver 没有给出任何响应。当我在输入命令后按回车键时,我唯一得到的是:
HP@LAPTOP-3446CCM0 MINGW64 ~/downloads/src7/src7/mysite
$ python manage.py runserver
Watching for file changes with StatReloader
此后屏幕上没有任何内容。但是当我按下CTRL+C 时,屏幕上会出现类似这样的内容:
$ 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.
May 29, 2020 - 15:38:05
Django version 3.0.6, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
如何克服这个
【问题讨论】:
-
这是一种奇怪的行为。但服务器实际上正在运行!先停止运行那个
StatReloader,看看你的服务器能不能正常启动。