Hacker News new | past | comments | ask | show | jobs | submit login
Django Debug Toolbar 1.0 beta released (groups.google.com)
107 points by pajju on Dec 22, 2013 | hide | past | favorite | 24 comments



For 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


Hey, 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.


Please tag your repository with the project versions.


hey thanks for this tool! It was really helpful when I was debugging a really slow page (turned out sorl.thumbnails was the issue)


Even 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.


DDT 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


Can you talk about why django-devserver is so useful for you?


The biggest thing for me is that it allows you to profile your SQL queries from AJAX calls which Django Debug Toolbar doesn't handle.


For AJAX the 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).


That looks great. Thanks for the heads up!


I 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-...


the final was released yesterday



Be 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...

and

https://github.com/django-debug-toolbar/django-debug-toolbar...


DDT 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.


If you use pip it is just a `pip install django-debug-toolbar` away so it can't get too much easier than that!


Sure, 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.


The Two scoops (awesome Django book) project setup is pretty great, https://github.com/twoscoops/django-twoscoops-project. There's instructions in its readme to use it to start a new project, although some of its features are probably better explained by the book.


On the other hand you will definitely need these tools (or similar techniques) to do state of the art Python development anyway.


Is there really anyone out there who does any Python/Django dev and doesn't use PIP? I'm not sure there's even any tutorials for absolute beginners that don't mention it at least as part of the install process?


+1, pip install it and then add it to installed_apps...


Wait, how else does anyone else do this?


git clone https://github.com/django-debug-toolbar/django-debug-toolbar...

cd django-debug-toolbar

python setup.py install

I guess?


Or simply a symlink:

wget ... tar zxvf ... cd myproject ln -s ../django-debug-toolbar-xxx/debug_toolbar




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: