Opened 5 years ago

Closed 5 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

Description

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 server.py 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.

http://www.mediafire.com/file/un0s3wdgt8bld6b/webFillGauge.zip/file

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

Change History (3)

comment:1 by Claude Paroz, 5 years ago

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 by David Pineda, 5 years ago

Resolution: invalid
Status: closednew

Hi,
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 server.py (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.
https://www.mediafire.com/file/0ci7dy8sas903ze/npm_dist_vs_django_serv-1.ogv/file

comment:3 by Mariusz Felisiak, 5 years ago

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