Profiling Django

已回答

My app is pretty slow even in a dev environment so I would like to figure out what's slowing it down so I can try and fix it.

I know about the debug toolbar and according to what it reports neither the database queries nor the downloaded sources are the issue, so it must be the business logic.

However, I cannot run the PyCharm profiler with the Django server because, well, it's not like running a script.

How may I profile Django with PyCharm?

0

Hello,

>  I cannot run the PyCharm profiler with the Django server because, well, it's not like running a script

You could create Django Server Run configuration (Run| Edit configurations...) and run it in profiling mode.

0

请先登录再写评论。