Django in Pydev spawns multiple processes?

泄露秘密 提交于 2019-12-11 00:45:45

问题


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?


回答1:


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)



来源:https://stackoverflow.com/questions/5576305/django-in-pydev-spawns-multiple-processes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!