Django Gunicorn Debug

后端 未结 5 405
陌清茗
陌清茗 2021-01-11 23:52

Initially I had a Django app with the included testing server. To debug this setup, I can just add a import pdb; pdb.set_trace() anywhere in the code and have a

5条回答
  •  借酒劲吻你
    2021-01-12 00:37

    To run green unicorn in a reverse proxy configuration (under nginx) in a debugger / debug mode, enter the following settings in PyCharm's Run / Django / Edit configurations:

    Of course, use whatever port (instead of 7777) you have configured your nginx to proxy to.

    Screenshot

提交回复
热议问题