7 ms·
Django Debug Toolbar 1.0 beta released
- arthurk 13y agothe final was released yesterday
- orenbarzilai 13y agolink for the final version https://github.com/django-debug-toolbar/django-debug-toolbar/tree/1.0 https://github.com/django-debug-toolbar/django-debug-toolbar...
- randlet 13y agoDDT and Django devserver[1] are the two first packages I install for every new Django project. Thanks to anyone who has contributed to this release! [1] https://github.com/dcramer/django-devserver https://github.com/dcramer/django-devserver
- Caligula 13y agoCan you talk about why django-devserver is so useful for you?
- randlet 13y agoThe biggest thing for me is that it allows you to profile your SQL queries from AJAX calls which Django Debug Toolbar doesn't handle.
- ionelm 13y agoI suppose it's not that hard [1] to write a logging filter to display SQL just like devserver does but without all that monkeypatching ? [1] http://blog.ionelmc.ro/2013/12/10/adding-stacktraces-to-log-messages/ http://blog.ionelmc.ro/2013/12/10/adding-stacktraces-to-log-...
- vangale 13y agoFor AJAX the https://github.com/recamshak/django-debug-panel https://github.com/recamshak/django-debug-panel also works, although you need to install the matching chrome extension. (Don't know if it works yet with this new release of django-debug-toolbar).
- randlet 13y agoThat looks great. Thanks for the heads up!
- wiremine 13y agoDDT is great tool. This is one of those things that should be much easier to install into a standard Django install, IMHO. It might not be a battery to include, but it should be a battery that is really, really easy to install.
- randlet 13y agoIf you use pip it is just a `pip install django-debug-toolbar` away so it can't get too much easier than that!
- omegote 13y ago+1, pip install it and then add it to installed_apps...
- Goopplesoft 13y agoWait, how else does anyone else do this?
- randlet 13y agogit clone https://github.com/django-debug-toolbar/django-debug-toolbar.git https://github.com/django-debug-toolbar/django-debug-toolbar... cd django-debug-toolbar python setup.py install I guess?
- olau 13y agoOr simply a symlink: wget ... tar zxvf ... cd myproject ln -s ../django-debug-toolbar-xxx/debug_toolbar
- wiremine 13y agoSure, pip is easy enough, but you have to know about pip, DDT and set up a requirements.txt file if you want to share it with anyone else. There are LOTS of handy third-party Django tools, but you need to know about them. That's the part that isn't as easy as it should be. It would be nice if Django came with a few "recommended" requirements.txt files that documented the third-party tools.
- numlocked 13y agoFor anyone who isn't using it already, the Template Timings Panel[0] is a plug-in for DDT and is a fantastic profiling tool. [0] https://github.com/orf/django-debug-toolbar-template-timings https://github.com/orf/django-debug-toolbar-template-timings
- mildtrepidation 13y agoEven the normal built-in template info has been extremely helpful while attempting to diagnose some really, really slow page loads on fairly large systems (49 template loads from disk was a very nasty shock but not exactly a surprise). Same with the easy-to-use DB query overview.
- orf 13y agoHey, that's mine! Nice to see someone likes it :) Debug-toolbar broke a few things recently while shuffling some internal methods around, I'm literally just about to ensure everything works with 1.0.
- dimadima 13y agoBetter yet, spend a day or two on learning how to interactively debug python.
- zentrus 13y agoBe aware that this version of DDT is likely broken if you are using require.js or other AMD loaders. It may even fail in non-AMD environments if you are using jQuery. This appears to be related to DDT now loading its own jQuery in a non-AMD way. For status see: https://github.com/django-debug-toolbar/django-debug-toolbar/issues/472 https://github.com/django-debug-toolbar/django-debug-toolbar... and https://github.com/django-debug-toolbar/django-debug-toolbar/pull/506 https://github.com/django-debug-toolbar/django-debug-toolbar...