Opened 4 years ago

Closed 4 years ago

#31272 closed Bug (invalid)

Django and JS (from npm module) problem

Reported by: David Pineda Owned by: nobody
Component: contrib.staticfiles Version: 3.0
Severity: Normal Keywords: static, jvascript, npm, d3
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Hi guys.

I'm working with some js, (d3, openplayers, pure js), with npm and parcel bundler.

The js module works fine, even on the dist (compiled) version for production. On the dist folder i added a file to test this files, works fine.

Django loads the statics but can't work in a complete way.

I put this link with an entire django project and a simple example of the js module.

Also,I have the same problem with openlayers .....

Change History (3)

comment:1 Changed 4 years ago by Claude Paroz

Resolution: invalid
Status: newclosed

Hi David, please try first to use the support channels.
Reopen if you find something wrong in Django's code.

comment:2 Changed 4 years ago by David Pineda

Resolution: invalid
Status: closednew

I reopened that, because through the support channels (like the irc) nobody can answer or help me to solve this problem.

Is simple to catch the problem:

  • Just the npm dist using a (a http server to test) works fine
  • With Django, same files, a simple project calling the moduel: works wrong.

That don't raise an error but shows incorrectly the animation.
My guess is that Django in somewhat filter some statics or features.

Here a video with the differences.

comment:3 Changed 4 years ago by Mariusz Felisiak

Resolution: invalid
Status: newclosed
UI/UX: unset

You can try to use a different support channels, e.g. the Django forum or django-users mailing list. Trac is not is not one of them.

Note: See TracTickets for help on using tickets.
Back to Top