- Notifications
You must be signed in to change notification settings - Fork133
Open
Description
how can i get data from django template into dash app that integrated into it
this is the html template:
<div> {%plotly_direct name="student_performance" %} </div>
this is views.py:
def student_performance_display(request):
cards_data = requests.get("http://127.0.0.1:8000/cards/ab33da02-c725-4f47-85dc-7908374b267c").json()
context = {
'passed_hours': cards_data[0]['passed_hours'],
'cummulative_gpa': cards_data[0]['cummulative_gpa']
}
return render(request, 'home/student/student_performance.html', context)
i want to pass data into context into dash app
Metadata
Metadata
Assignees
Labels
No labels