Open vaniatoperich opened 4 years ago
@vaniatoperich thanks for the report. I'm going to need some more information so that I can try to replicate.
Ideally a small example project where the problem occurs would be good though I realize this is not always possible. Other useful information would be a copy of pip freeze
and which python version you are using. Also do you get SQL queries when only using django-debug-toolbar (request-history is very reliant on the toolbar for getting information)?
Another option would be to try running the toolbar alone using this PR where history is being integrated https://github.com/jazzband/django-debug-toolbar/pull/1250 (install using pip install -U git+https://github.com/tim-schilling/django-debug-toolbar@history
)
Also look if there are any errors in the javascript console.
Thank you for your quick reply. It will be difficult to provide you with example project.:( Here is my pip: aioredis==1.3.1 asgiref==3.2.7 async-timeout==3.0.1 attrs==19.3.0 autobahn==20.4.1 Automat==20.2.0 certifi==2019.11.28 cffi==1.13.1 channels==2.4.0 channels-redis==2.4.2 chardet==3.0.4 constantly==15.1.0 cryptography==2.8 daphne==2.4.1 Django==2.2 django-countries==6.1.2 django-debug-toolbar==2.2 django-debug-toolbar-request-history==0.1.1 django-extensions==2.2.5 django-rest-knox==4.1.0 django-rest-passwordreset==1.0.0 djangorestframework==3.10.3 elementpath==1.4.3 hiredis==1.0.1 hyperlink==19.0.0 idna==2.9 incremental==17.5.0 msgpack==0.6.2 msgpack-python==0.5.6 posix-ipc==1.0.4 psycopg2==2.8.4 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.19 pygraphviz==1.5 PyHamcrest==2.0.2 pyOpenSSL==19.1.0 pytz==2019.3 PyYAML==5.3 requests==2.23.0 sentry-sdk==0.14.2 service-identity==18.1.0 six==1.12.0 sqlparse==0.3.0 Twisted==20.3.0 txaio==20.4.1 urllib3==1.25.7 uWSGI==2.0.18 xmlschema==1.1.2 zope.interface==5.0.2
Project is running on python 3.6.8 version. There is uwsgi server in front and it is a single page app using ReactJS. I am concerned about the speed of my backend queries to django rest API.
There are no errors on javascript console.
I'll try the PR you suggested and let you know.
PR you suggested works fine!. Thanks!!! Feel free to close the ticket or let me know if I can provide you with any more info to troubleshoot further...
@vaniatoperich Careful with that PR. I've updated it a few times today.
Toolbar shows for example SQL, 768 queries in 628 sec, but when clicking on the panel I get "No SQL queries were recorded during this request."