We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added django components to another project and for some reason I just cannot get it to load CSS and JS dependencies.
I even tried the older version, but apparently I get the same result.
If I include the tags {% component_css_dependencies %} and {% component_js_dependencies %}
I just see these on the HTML:
If I omit the tag, I see nothing.
These tags are not mentioned in the installation, btw, should they be used or not?
I tried both inlining the JS and loading from template, does not seem to make a differenece.
The server is properly serving the files, i.e. I can see
http://127.0.0.1:8000/static/status_board/status_board.py http://127.0.0.1:8000/static/status_board/status_board.html http://127.0.0.1:8000/static/status_board/status_board.js http://127.0.0.1:8000/static/status_board/status_board.css
The text was updated successfully, but these errors were encountered:
Hi! Here's the docs for those three tags: https://github.com/EmilStenstrom/django-components?tab=readme-ov-file#rendering-jscss-dependencies
I'm wondering: Have you set RENDER_DEPENDENCIES without enabling the middleware?
Sorry, something went wrong.
ping @mikko-ahonen
No branches or pull requests
I added django components to another project and for some reason I just cannot get it to load CSS and JS dependencies.
I even tried the older version, but apparently I get the same result.
If I include the tags
{% component_css_dependencies %}
and
{% component_js_dependencies %}
I just see these on the HTML:
<script name="JS_PLACEHOLDER"></script>If I omit the tag, I see nothing.
These tags are not mentioned in the installation, btw, should they be used or not?
I tried both inlining the JS and loading from template, does not seem to make a differenece.
The server is properly serving the files, i.e. I can see
http://127.0.0.1:8000/static/status_board/status_board.py
http://127.0.0.1:8000/static/status_board/status_board.html
http://127.0.0.1:8000/static/status_board/status_board.js
http://127.0.0.1:8000/static/status_board/status_board.css
The text was updated successfully, but these errors were encountered: