开发者

Django in Pydev spawns multiple processes?

开发者 https://www.devze.com 2023-02-22 11:35 出处:网络
I have my project setup in PyDev in Eclipse. Whenever I debug my project, things go great, but once I try to restart the D开发者_如何学Gojango server, it spawns an additional runserver process, blocki

I have my project setup in PyDev in Eclipse. Whenever I debug my project, things go great, but once I try to restart the D开发者_如何学Gojango 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消