Use local graph assets instead of Plotly CDN.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-24 09:53:23 -04:00
parent bc13ab09e8
commit e4a92e0614
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
{% extends 'babyblotter/page.html' %}
{% load static %}
{% block javascript %}
<script src="https://cdn.plot.ly/plotly-latest.js"></script>
{% if debug %}
<script src="{% static "babyblotter/js/graph.js" %}"></script>
{% else %}
<script src="{% static "babyblotter/js/graph.min.js" %}"></script>
{% endif %}
{% endblock %}