PyDev and Django: how to restart dev server?

前端 未结 7 1531
一向
一向 2020-12-06 00:53

I\'m new to Django. I think I\'m making a simple mistake.

I launched the dev server with Pydev:

RClick on project >> Django >> Custom comman

7条回答
  •  抹茶落季
    2020-12-06 01:20

    By default, the runserver command runs in autoreload mode, which runs in a separate process. This means that PyDev doesn't know how to stop it, and doesn't display its output in the console window.

    If you run the command runserver --noreload instead, the auto-reloader will be disabled. Then you can see the console output and stop the server normally. However, this means that changes to your Python files won't be effective until you manually restart the server.

提交回复
热议问题