I am using dash inside a django application.
Inside a DetailView a dash app is loaded.
Integration is done with:
Locally it works fine.
Deployed to Google Cloud flexible App engine loading the page
somtimes the dash app in side the page is loading sometimes not.
Looking at the HTML source of the embedded iframe the content is:
The dash app is embeded in the template with
{%plotly_app initial_arguments=my_dict ratio=0.65 name=“Ticker” %}
the initial_arguments is an article number which is given to a invisible div
html.Div(id=‘artnum’, style={‘display’: ‘none’})
the callback hadlers use this article numer to display a graph.
Is that POST request different - other than the ‘URL’ part - to the version you have working outside of the app engine?
The // before _dash-update-component looks a bit suspicious, for example.
Thanks, based on that information and also on ‘sometimes … is loading sometimes not’ from your original post makes me think that this is something subtle to do with the app engine environment. I would suggest one or both of (a) trying again, using the latest version of django-plotly-dash if you haven’t already, and (b) reporting the issue on the project’s github page
I identified the problem. I am loading the app with django-plotly-dash. I give as initial argument a number (an article number of the article to display) to the dash app and write it to a DIV.
Sometimes the number is not given to the dash app. It seems to be an issue of loading time of django and dash.