I’m sure a lot of what I’m asking is basic and assumed knowledge, but I’m new to adding interactivity to a Django project and have found what seems to be a bit of a gap in the docs, at least from the perspective of a newby.
What I’m trying to do: add a DataTable to an existing django template so that my table data can be interactive.
What I’m confused about : the relationship between a dash app.py file, the django view, and integrating the two in an existing django template.
The docs for plotly-dash assume the project is a stand-alone single page app that sources data from a .csv right in the app file, while the docs for django-plotly-dash jump right from hardcoding all the values for a chart to complex examples with callbacks and streaming data. I’m trying to find what I had assumed would be a fairly basic middleground: passing queryset data from a view to dash app for visualization.
Do I need to disregard the django view entirely and load data in the dash app? Do I need to create the app without any data in the dash app file and then merge it with the data somehow in the template, or should it happen at the view level? Should the rendered .js call the view endpoint to get the data?
TLDR: I’m just looking for a high level understanding of how this should all work in a typical use-case.