Provide tool which help finding performance issues in django projects.
pip install -r requirements.txt
pip install django-care
or current development version:
pip install hg+https:://bitbucket.org/kidosoft/django-care
INSTALLED_APPS = ( ... 'care', ... )
Running command below will statistics about queries run at project startup.
$ python manage.py check_startup_queries -o queries.txt
In order to get sql queries annotated with path and view in which it occured add middleware as below.
MIDDLEWARE_CLASSES += ('care.middleware.AnnotateSQLMiddleware',)
Issued queries will have comment appended in the form:
<original query> -- path: <request path> | view: <resolved view>
SELECT `id`, `username` FROM `auth_user` WHERE `id` = 1 -- path: / | view: base.index
It can help with searching for source of slow queries from slow.log.
TODO: Figure out how to actually get changelog content.
Changelog content for this version goes here.
TODO: Brief introduction on what you do with files - including link to relevant help section.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|django_care-0.1.0-py2.py3-none-any.whl (12.2 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Dec 2, 2014|
|django-care-0.1.0.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256||–||Source||Dec 2, 2014|