helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.

Home Page:https://bootstrap-flask.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where are test.css, test.js and test.ico?

WolfgangFahl opened this issue · comments

http://fb4demo.bitplan.com/static doesn't display anything. When trying to find out why i looked into:

{% block content %}
    {{ render_static('css', 'test.css') }}
    {{ render_static('js', 'test.js') }}
    {{ render_static('icon', 'test.ico') }}
{% endblock %}
find . -name test.css
find . -name test.js
find . -name test.ico

give no result in my environment so i a assume this is somewhere shipped with the package. How would if find this location with python code?

I found these with static wf$find .:

Click to expand
.
./css
./css/bootstrap.min.css
./css/swatch
./css/swatch/journal
./css/swatch/journal/bootstrap.min.css
./css/swatch/solar
./css/swatch/solar/bootstrap.min.css
./css/swatch/united
./css/swatch/united/bootstrap.min.css
./css/swatch/sketchy
./css/swatch/sketchy/bootstrap.min.css
./css/swatch/minty
./css/swatch/minty/bootstrap.min.css
./css/swatch/litera
./css/swatch/litera/bootstrap.min.css
./css/swatch/cerulean
./css/swatch/cerulean/bootstrap.min.css
./css/swatch/sandstone
./css/swatch/sandstone/bootstrap.min.css
./css/swatch/pulse
./css/swatch/pulse/bootstrap.min.css
./css/swatch/default
./css/swatch/default/bootstrap.min.css
./css/swatch/slate
./css/swatch/slate/bootstrap.min.css
./css/swatch/materia
./css/swatch/materia/bootstrap.min.css
./css/swatch/simplex
./css/swatch/simplex/bootstrap.min.css
./css/swatch/lumen
./css/swatch/lumen/bootstrap.min.css
./css/swatch/flatly
./css/swatch/flatly/bootstrap.min.css
./css/swatch/cosmo
./css/swatch/cosmo/bootstrap.min.css
./css/swatch/superhero
./css/swatch/superhero/bootstrap.min.css
./css/swatch/cyborg
./css/swatch/cyborg/bootstrap.min.css
./css/swatch/darkly
./css/swatch/darkly/bootstrap.min.css
./css/swatch/lux
./css/swatch/lux/bootstrap.min.css
./css/swatch/spacelab
./css/swatch/spacelab/bootstrap.min.css
./css/swatch/yeti
./css/swatch/yeti/bootstrap.min.css
./css/bootstrap-reboot.min.css.map
./css/bootstrap.css
./css/bootstrap-grid.css.map
./css/bootstrap-grid.min.css
./css/bootstrap.css.map
./css/bootstrap.min.css.map
./css/bootstrap-reboot.min.css
./css/bootstrap-reboot.css
./css/bootstrap-grid.css
./css/bootstrap-grid.min.css.map
./css/bootstrap-reboot.css.map
./js
./js/bootstrap.bundle.js
./js/bootstrap.bundle.min.js.map
./js/bootstrap.bundle.js.map
./js/bootstrap.js
./js/bootstrap.bundle.min.js
./js/bootstrap.min.js
./js/bootstrap.js.map
./js/bootstrap.min.js.map
./popper.min.js.map
./img
./img/edit.svg
./img/delete.svg
./img/view.svg
./jquery.min.js
./icons
./icons/bootstrap-icons.svg
./jquery.min.map
./popper.min.js

These calls are just demonstrated how the render_static works, you can check the output of these calls in the HTML source. Since the output (<link> or <script> tag) won't show on the page, I already removed the page in the example application.