From 9a524875abe2432adce817950cfa286a550d7f85 Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Fri, 15 Nov 2019 16:49:05 -0800 Subject: [PATCH 1/2] Add contributor --- CONTRIBUTIONS.md | 2 ++ 1 file changed, 2 insertions(+) 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) From 4a6591323b337dfbc2596d4d8559a73787f0d22d Mon Sep 17 00:00:00 2001 From: Mark Gibbs Date: Fri, 15 Nov 2019 16:49:19 -0800 Subject: [PATCH 2/2] Handle missing module in older dash versions --- django_plotly_dash/views.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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