mklymyshyn / django-dtpanel-htmltidy

Custom panel form Django Debug Toolbar which display HTML Validation errors and warnings
BSD 3-Clause "New" or "Revised" License
45 stars 8 forks source link

no output with debug_toolbar 1.0.1 #9

Open tecnosegugio opened 10 years ago

tecnosegugio commented 10 years ago

Using the new Debug Toolbar 1.0.1 the only visible output I get is '<'.

Looking at the generated HTML code I see something that remind me a Python exception.

So after debugging the code I think that the initials ros of panels.content method must be changed in:

    @property
    def content(self):
        context = dict()

Because self.context doesn't exists and the method must be defined as a property in order to works with DT 1.0.1.

After this changes, the panel works again.

Thank you

joej commented 8 years ago

Ditto on this ... I wasted time with installing the version that pip installs ... bad, broken, pre-django 1.6 URL fix. Deinstalled it.

So, I cloned and installed locally from the current github version ... spent time figuring out why HTMLTidy's panel shows in the toolbar, but no other panels show ... got it all fixed ... and now I'm facing a pane with ">" as the content Deinstalled it.

Heck with this, I'll let Syntastic show me HTML validation errors instead.