[Django] #31272: Django and JS (from npm module) problem

6 views
Skip to first unread message

Django

unread,
Feb 14, 2020, 11:11:43 AM2/14/20
to django-...@googlegroups.com
#31272: Django and JS (from npm module) problem
-------------------------------------+-------------------------------------
Reporter: dpineiden | Owner: nobody
Type: Bug | Status: new
Component: | Version: 3.0
contrib.staticfiles | Keywords: static, jvascript,
Severity: Normal | npm, d3
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
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 .....

--
Ticket URL: <https://code.djangoproject.com/ticket/31272>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 14, 2020, 12:25:49 PM2/14/20
to django-...@googlegroups.com
#31272: Django and JS (from npm module) problem
-------------------------------------+-------------------------------------
Reporter: David Pineda | Owner: nobody
Type: Bug | Status: closed
Component: contrib.staticfiles | Version: 3.0
Severity: Normal | Resolution: invalid
Keywords: static, jvascript, | Triage Stage:
npm, d3 | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => invalid


Comment:

Hi David, please try first to use the
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels].
Reopen if you find something wrong in Django's code.

--
Ticket URL: <https://code.djangoproject.com/ticket/31272#comment:1>

Django

unread,
Feb 17, 2020, 7:20:14 AM2/17/20
to django-...@googlegroups.com
#31272: Django and JS (from npm module) problem
-------------------------------------+-------------------------------------
Reporter: David Pineda | Owner: nobody
Type: Bug | Status: new

Component: contrib.staticfiles | Version: 3.0
Severity: Normal | Resolution:
Keywords: static, jvascript, | Triage Stage:
npm, d3 | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by David Pineda):

* status: closed => new
* resolution: invalid =>


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/31272#comment:2>

Django

unread,
Feb 17, 2020, 7:33:02 AM2/17/20
to django-...@googlegroups.com
#31272: Django and JS (from npm module) problem
-------------------------------------+-------------------------------------
Reporter: David Pineda | Owner: nobody
Type: Bug | Status: closed
Component: contrib.staticfiles | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: static, jvascript, | Triage Stage:
npm, d3 | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed

* ui_ux: 1 => 0
* resolution: => invalid


Comment:

You can try to use a different support channels, e.g.
[https://forum.djangoproject.com the Django forum] or
[https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum
/django-users django-users mailing list]. Trac is not is not one of them.

--
Ticket URL: <https://code.djangoproject.com/ticket/31272#comment:3>

Reply all
Reply to author
Forward
0 new messages