Django将控制台输出重定向至文件

python manage.py test > test.log 2>&1

使用该命令即可将在控制台的输出重定向至日志文件。

猜你喜欢

转载自blog.csdn.net/qq_43580193/article/details/105466573