Monday, December 16, 2013

Re: Django Debug Toolbar 1.0 beta released

On 16 déc. 2013, at 12:33, kamagatos <kamagatos@gmail.com> wrote:

we should start thinking about a way to catch and display every ajax/json responses. because more and more applications are becoming ajax ready and they use front-end frameworks like angularjs or backbone to deal with getting stuff on the backend.

Several people have already thought about it, and some have written code: https://github.com/django-debug-toolbar/django-debug-toolbar/pull/356. But as I'm not using the toolbar myself — I merely modernized it because I believe it's an important component of the Django ecosystem — I'm lacking motivation to write that feature.

Fortunately, in version 1.0, the core of the toolbar has been slimmed down drastically; almost everything is implemented in panels. You can implement the feature you're describing as a third-party panel, without any changes to the toolbar itself. If you write such a panel and it works well, then we could discuss merging in the toolbar.

The public API for panels is documented here: http://django-debug-toolbar.readthedocs.org/en/latest/panels.html#api-for-third-party-panels. I hope this helps!

-- 
Aymeric.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate