Resolve "Add CSS/JS static files for material select2"
Closes #222 (closed)
Merge request reports
Activity
changed milestone to %2.0a2
added part::frontend label
added 1 commit
- 06f60155 - Add yarn dependency "select2-materialize" in settings.py so that...
assigned to @nik
added part::backend label
- Resolved by Hangzhi Yu
But can't I also use
<script type="text/javascript" src='{% static 'select2-materialize/index.js' %}'></script>
?As long as it is inside
STATIC_ROOT
, yes. But production systems do not serve from node_modules, but e.g. from Debian's javascript-common. Paths to frontend dependencies must therefore be configurable.
added 1 commit
- 02e65663 - Add JS/CSS to ANY_JS to be able to configure paths for frontend dependencies
- Resolved by Hangzhi Yu
You mixed up JS and CSS in ANY_JS.
Also, that change to the default for DEBUG looks quite strange. I can't even imagine any reason to touch it.
added 1 commit
- b7805eb0 - Fixed mixed up JS/CSS in ANY_JS, turned off DEBUG
- Resolved by Hangzhi Yu
Please remove the unrelated changes from the commit history by rebasing. Also fix the URL mixup by rebasing, amending.
Probably the easiest way to do that now is squashing the two last commits into one.
added 1 commit
- 28abbbf9 - Add JS/CSS to ANY_JS to be able to configure paths for frontend dependencies