Oleksandr
Oleksandr

Reputation: 237

Why django debug toolbar is hidden?

I install django debug toolbar and it did not appear in the browser, when I looked at the code, I saw that it was hidden. How can I fix this? enter image description here

Upvotes: 2

Views: 1645

Answers (1)

Oleksandr
Oleksandr

Reputation: 237

Thank you all for your help, I solved this problem like this

if DEBUG:
    import mimetypes
    mimetypes.add_type("application/javascript", ".js", True)

Upvotes: 5

Related Questions