diff --git a/CONTRIBUTIONS.md b/CONTRIBUTIONS.md index 2d3d1a1e..3cdcd5b2 100644 --- a/CONTRIBUTIONS.md +++ b/CONTRIBUTIONS.md @@ -27,3 +27,5 @@ Thanks to the following people: [dwinston](https://github.com/dwinston) [gianlucasalvato](https://github.com/gianlucasalvato) + +[tiagoslg](https://https://github.com/tiagoslg) diff --git a/django_plotly_dash/views.py b/django_plotly_dash/views.py index 86539aa2..500044aa 100644 --- a/django_plotly_dash/views.py +++ b/django_plotly_dash/views.py @@ -28,7 +28,14 @@ from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect -from dash.fingerprint import check_fingerprint + +try: + from dash.fingerprint import check_fingerprint +except: + # check_fingerprint not available, fake it + def check_fingerprint(resource): + return resource, None + from .models import DashApp from .util import get_initial_arguments, static_path