Profiling Django

Answered

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?

1 comment
Comment actions Permalink

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

Please sign in to leave a comment.