Django web server profiling for long startup time

I noted that manage.py runserver takes a long time to start the development web server for the Django project I'm working on. I am wondering if there is a way to understand which part of the launch requires so many resources, and in the end I can collect enough information to fix the problem.

Does anyone have an idea what I can do?

+6
performance profiling django webserver startup
source share
2 answers

I found a simple and effective solution:

 python -m cProfile manage.py runserver > profiled 

Read more about Python profilers here (white papers).

I also posted a link to introducing videos to Python profiling and related tools (PyCon 2009)

+10
source share

When using Vagrant, move the virtualenv folder away from /vagrant .

See my answer on a similar question .

0
source share

All Articles