@avnj wrote:
Hi,
I have set up a django site and embedded plotly dash into the urls. This has worked successfully. However, I am now trying to make the site ‘pretty’ and use
app = DjangoDash(‘app’, external_stylesheets=[dbc.themes.BOOTSTRAP])
I receive the below error.
Django version 3.0.4, using settings ‘UPS.settings’
Starting ASGI/Channels version 2.4.0 development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
HTTP GET /test/ 200 [0.13, 127.0.0.1:60098]
HTTP GET /django_plotly_dash/app/test/ 200 [0.03, 127.0.0.1:60098]
HTTP GET /django_plotly_dash/app/test/_dash-component-suites/dash_bootstrap_components/_components/dash_bootstrap_components.v0_9_0m1585057943.min.js 302 [0.01, 127.0.0.1:60098]
Not Found: /static/dash/component/dash_bootstrap_components/_components/dash_bootstrap_components.min.js
HTTP GET /static/dash/component/dash_bootstrap_components/_components/dash_bootstrap_components.min.js 404 [0.02, 127.0.0.1:60098]
HTTP GET /django_plotly_dash/app/test/_dash-layout 200 [0.05, 127.0.0.1:60098]
HTTP GET /django_plotly_dash/app/test/_dash-dependencies 200 [0.07, 127.0.0.1:60099]
- I have done pip install dash-bootstrap-components
- https://django-plotly-dash.readthedocs.io/en/latest/configuration.html#configuration-options - did all that.
- Please note - prior to trying to import dash_bootstrap_components as dbc and then trying to use dbc. whatever - I was able to use plotly dash successfully with 400 lines of code. Only introducing the bootstrap stuff is throwing errors and I have nooooooo idea what to do.
Thank you for your time
Posts: 7
Participants: 2