Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel script not loading because of path issue #25

Open
jgillard opened this issue Jul 1, 2022 · 1 comment
Open

Panel script not loading because of path issue #25

jgillard opened this issue Jul 1, 2022 · 1 comment

Comments

@jgillard
Copy link

jgillard commented Jul 1, 2022

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.

@jgillard
Copy link
Author

jgillard commented Jul 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant