GibbsConsulting / django-plotly-dash

Expose plotly dash apps as django tags
MIT License
540 stars 123 forks source link

Passing URL Get Request parameters to Dash App #416

Open sanjaymeena opened 1 year ago

sanjaymeena commented 1 year ago

Hello,

I am directly embedding plotly dash app using plotly_direct. If I want to pass URL Get parameters to the dash app, how is it possible to do it? The standalone dash app (2.6) works fine using the dash multi-page app approach.

GibbsConsulting commented 1 year ago

The GET parameters are available to whatever view is rendering the template containing the plotly_direct or similar tag. You'll need to pass the necessary parameters to the dash app as arguments to this tag. See the template tag documentation for more information.

GibbsConsulting commented 1 year ago

Note that there is an enhancement request #417 for multi-page dash apps, which are reported to be a new feature of Dash that is not yet available in dpd.