【问题标题】:Make the output of Django runserver flush in Git Bash在 Git Bash 中使 Django runserver 的输出刷新
【发布时间】:2021-10-31 07:51:23
【问题描述】:

我在Git Bash下发出python manage.py runserver时,只出现一行输出:

Watching for file changes with StatReloader

当我停止服务器或更改代码时,会出现剩余的输出:

Performing system checks...

System check identified no issues (0 silenced).
September 01, 2021 - 23:11:21
Django version 3.2.7, using settings 'newserver.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

如何让它立即冲洗?

【问题讨论】:

  • 您在导入时是否有阻塞代码?

标签: python django git-bash


【解决方案1】:

我使用here 中的代码修改了manage.py。这样就解决了问题。

【讨论】:

    猜你喜欢
    • 2023-03-11
    • 2011-07-25
    • 2016-02-21
    • 1970-01-01
    • 2015-09-10
    • 1970-01-01
    • 2015-05-26
    • 2020-09-29
    • 2017-06-14
    相关资源
    最近更新 更多