Pydev中的Django产生多个进程? [英] Django in Pydev spawns multiple processes?
问题描述
8000
)。有没有一个解决方法,以确保它真的杀死了服务器? Django每次更改任何Python时重新加载服务器代码(运行服务器的另一个实例并杀死旧的)。似乎从Pydev启动时它的处理不当。您可以通过在服务器启动命令中添加 - noreload
参数来停用此功能。
更多信息: --noreload
, pydev / django
(查找下面的注释,以运行/调试为Django )
I have my project setup in PyDev in Eclipse. Whenever I debug my project, things go great, but once I try to restart the Django server, it spawns an additional runserver process, blocking up the port I'm using for the server (8000
). Is there a workaround to make sure it really kills the server?
Django reloads the server each time changes are made to any Python code (running another instance of the server and killing the old one). It seems that it's not handled properly when launched from Pydev. You can deactivate this by adding the --noreload
argument to the server starting command.
More information: --noreload
, pydev/django
(look for the remark below Run/Debug as Django)
这篇关于Pydev中的Django产生多个进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!