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

The admin charts aren't displayed #277

Open
tmszi opened this issue Jan 4, 2023 · 2 comments · May be fixed by #278
Open

The admin charts aren't displayed #277

tmszi opened this issue Jan 4, 2023 · 2 comments · May be fixed by #278
Labels
bug Something isn't working javascript Pull requests that update Javascript code

Comments

@tmszi
Copy link
Member

tmszi commented Jan 4, 2023

Describe the bug
Admin charts aren't displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://dpnk.dopracenakole.cz/
  2. Login into app
  3. Open web browser dev tools, switch to the Network tab (page)
  4. Refresh page
  5. See error, js libs d3, nvd3 required for Django admin charts app aren't loaded

network_-_admin_charts_js_libs_not_found

Expected behavior
Admin charts should be displayed.

Screenshots
admin_charts_aren_t_loaded

@tmszi tmszi added bug Something isn't working javascript Pull requests that update Javascript code labels Jan 4, 2023
@PetrDlouhy
Copy link
Contributor

@tmszi In the newest versions of django-admin-charts the JS files are taken from UNPKG. So maybe it will be enough to update the library and remove the configuration for bower: https://github.com/PetrDlouhy/django-admin-charts#configure-javascript-libraries

@tmszi
Copy link
Member Author

tmszi commented Jan 4, 2023

@tmszi In the newest versions of django-admin-charts the JS files are taken from UNPKG. So maybe it will be enough to update the library and remove the configuration for bower: https://github.com/PetrDlouhy/django-admin-charts#configure-javascript-libraries

Yes you are right. I readed django-admin-charts app docs . But we can hold version "<1.2.0", because upgrade isn't smooth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants