我尝试使用以下命令设置带有自签名 SSL 的 Django 服务器:
python manage.py runserver_plus --cert /tmp/cert 0.0.0.0:8060
运行服务器后,它自动重新启动服务器并再次加载所有模块,我找不到原因。 我的输出是这样的:
* Running on https://0.0.0.0:8060/ (Press CTRL+C to quit)
* Restarting with stat
Performing system checks...
System check identified no issues (0 silenced).
Django version 3.1.4, using settings 'rokhban.settings'
Development server is running at https://0.0.0.0:8060/
Using the Werkzeug debugger (http://werkzeug.pocoo.org/)
Quit the server with CONTROL-C.
* Debugger is active!
* Debugger PIN: 233-701-884
PS:使用 python manage.py runserver 0.0.0.0:8060
运行服务器时不会发生这种情况
为什么会发生这种情况?