From 367e82df5384fd186772699d177b0197d2d94756 Mon Sep 17 00:00:00 2001 From: Andrew Pendleton Date: Mon, 6 Feb 2012 14:37:23 -0500 Subject: [PATCH] Adding a setting for the path to the fallback charts. --- influence/context_processors.py | 1 + templates/base.html | 1 + 2 files changed, 2 insertions(+) diff --git a/influence/context_processors.py b/influence/context_processors.py index 74afd97..c4cae56 100644 --- a/influence/context_processors.py +++ b/influence/context_processors.py @@ -8,4 +8,5 @@ def custom_context(request): 'API_KEY': getattr(settings, 'CLIENT_API_KEY', settings.API_KEY), 'AGGREGATES_API_BASE_URL': getattr(settings, 'CLIENT_AGGREGATES_API_BASE_URL', settings.AGGREGATES_API_BASE_URL), 'FIRST_VIEW': urlparse.urlparse(request.META.get('HTTP_REFERER', '')).netloc != request.META.get('HTTP_HOST', ''), + 'CHART_FALLBACK_URL': getattr(settings, 'CHART_FALLBACK_URL', '/chart/'), } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 92013ef..7094e6b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -138,6 +138,7 @@

Like this Project and Want to Discover Others Like It?

{% js "js/brisket-all.js" %} + {% block gsfn %}