Python Django运行windows命令提示符

Python Django运行windows命令提示符,python,django,django-views,subprocess,command-prompt,Python,Django,Django Views,Subprocess,Command Prompt,如何使用django显示/运行windows命令提示符 在我看来 def run(request): cmd = '__batch.cmd Server.Tester.exe Config.xml' exitcode = str(subprocess.call(cmd, shell=False)) return render(request, "testy/lista.html", {"exitcode": exitcode}) 我使用子进程。调用,但输出请参见py

如何使用django显示/运行windows命令提示符

在我看来

def run(request):

    cmd = '__batch.cmd Server.Tester.exe Config.xml'
    exitcode = str(subprocess.call(cmd, shell=False))

    return render(request, "testy/lista.html", {"exitcode": exitcode})
我使用子进程。调用,但输出请参见pycharm终端,而不是windows命令提示符。有人能帮我吗


这个问题没有意义。你会在哪里展示它?Django是一个web框架,用户通过web浏览器访问它。此应用程序仅在本地计算机上运行,并且view必须运行.exe文件。我需要显示命令提示符,但此外部应用需要交互是/否。