My Django application is insanely slow, I want to figure out what is taking time :
I tried Django-debug-toolbar
but was unable to find a panel that can give me the break-up of the load time.
My requirements:
Can django-debug-toolbar
do that ? [ What panel ? ]
Any other django-app that can do that ?
The startproject will create the main project directory, while the startapp will create the app directory. Both are also been passed a name to be used in generation. The startproject is the first command run when creating a new project, while the startapp is run inside the new project directory.
If you want to debug Django using PTVS, you need to do the following: In Project settings - General tab, set "Startup File" to "manage.py", the entry point of the Django program. In Project settings - Debug tab, set "Script Arguments" to "runserver --noreload". The key point is the "--noreload" here.
django-debug-toolbar
2.0By default, django-debug-toolbar
2.0 includes 'debug_toolbar.panels.profiling.ProfilingPanel'
in the settings DEBUG_TOOLBAR_PANELS
. You can view this profiling information by ticking the "Profiling" checkbox in the toolbar and refreshing the page.
django-debug-toolbar
:You can try the profiling panel of the django-debug-toolbar (make sure you use the application's latest version from github). Enable the panel like so in your settings.py:
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.profiling.ProfilingDebugPanel',
)
This existence of this panel is not documented on the readme of django-debug-toolbar; that's why I answer here in the first place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With