GibbsConsulting / django-plotly-dash

Expose plotly dash apps as django tags
MIT License
551 stars 125 forks source link

Plotly Direct tag issue #509

Closed Sultan91 closed 1 minute ago

Sultan91 commented 2 hours ago

Using direct_plotly tag in django html template doesn't render DjangoDash app html code

<!DOCTYPE html>
<html>
    <head>
    {% load plotly_dash%}
    {% plotly_header %}
    </head>
    <body>
    {%plotly_direct name="client_analytics"%}
    </body>
    {% plotly_footer %}
</html>

The resulting HTML error: Screenshot from 2024-10-21 11-25-02

Settings are standard

GibbsConsulting commented 2 hours ago

Have you added the other elements to your template as listed in the documentation?

As a rule, the plotly_app and plotly_app_bootstrap tags require less additional setup and so are easier to use - are you able to use either of them?

Sultan91 commented 2 hours ago

Right I'll change the question

Sultan91 commented 1 minute ago

looks like problem was resolved by reinstalling dash components, closing issue as not actual, Thank you for a quick response!