Panel script not loading because of path issue
I've followed the installation steps, but when I click on the new Template Profiler panel I get this error in the browser console:
Failed to load resource: the server responded with a status of 404 (Not Found)
for the file: :8000/catalogue/static/js/template_profiler.js:1
catalogue is the name of one of our apps, so the path for this script isn't starting at the correct place which is one level further up the directory tree.
I see in the parent project codebase that they call static on the script paths e.g. https://github.com/jazzband/django-debug-toolbar/blob/8b280e196e21b73de10f22cc9bae0d566777dc35/debug_toolbar/panels/timer.py#L58
whereas in this project it's hard-coded: https://github.com/node13h/django-debug-toolbar-template-profiler/blob/master/template_profiler_panel/panels/template.py#L64
Maybe this is the issue, I've only spent a few minutes digging in so I might be wrong, just wanted to make it clear the issue I'm seeing.
And I now see #22 covers this same issue. I hadn't spotted it before as the title didn't contain the keywords I was looking for.