Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Commit

Permalink
Adding a setting for the path to the fallback charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
apendleton committed Feb 6, 2012
1 parent 3c27475 commit 367e82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions influence/context_processors.py
Expand Up @@ -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/'),
}
1 change: 1 addition & 0 deletions templates/base.html
Expand Up @@ -138,6 +138,7 @@ <h4 class="withTip">Like this Project and Want to Discover Others Like It?</h4>

<img height="1" border="0" width="1" alt="" src="http://ad.doubleclick.net/activity;src=1379696;dcnet=4155;boom=41134;sz=1x1;ord=1?" />
{% js "js/brisket-all.js" %}
<script type="text/javascript">BrisketFallback.PATH = {{ CHART_FALLBACK_URL }};</script>

{% block gsfn %}
<script type="text/javascript" charset="utf-8">
Expand Down

0 comments on commit 367e82d

Please sign in to comment.