I made a dash webpage in django using django-plotly-dash. I have a code logic to get a dash figure updated when a submitted button was clicked. If I get Django dev webserver up and running to test the dash page by clicking the submitted button, the figure can get updated and shown on dash. But when I did the same on Django production, after the submitted button getting clicked, the figure was unable to show on dash. I monitored the webserver console log, the code logic behind was completed and the figure was able to be recreated with new data successfully without any problems.
It’s confirmed that collectionstatic, nginx, gunicorn were updated and restarted.
Having something work with the development environment, but not in production, is often due to the configuration for serving static files in Django - as well as images this includes the javascript for Dash itself.
Look in the development console of the web browser - are the any errors in the console or failure to load any files?
You need to look at whatever you have between your web browser and the Django server and see what they are/are not doing. The nginx logs are probably the first place to look; its configuration would be top of my list to check.
based on the error message found from browser inspect console regarding gateway timeout. I already get the problem fixed by increasing nginx proxy_read_timeout, proxy_connect_timeout, and proxy_send_timeout.