1
Just cache the view where the plot is rendered.
from django.views.decorators.cache import cache_page
@cache_page(60 * 15)
def my_view(request):
...
Carefully read Django’s cache documentation. Caches are useful and powerful but they are complex and a misconfiguration can lead to hard to debug consequences.
0
You can try using Plotly express as it is high level wrapper for Plotly and to load graphs faster you can use caching or embed plotly with Javascript wrapper which will make the loading time less in general.
- [Answered ]-Status: 400; Message: Token validated, but invalid for app <app_id>
- [Answered ]-Add raw sql where clause to django queryset
Source:stackexchange.com