Load 'static' instead of 'staticfiles' in templates (#5773)

This commit is contained in:
Jon Dufresne 2018-01-25 21:43:55 -08:00 committed by Ryan P Kilby
parent 1664588500
commit 052a20cd7b
7 changed files with 6 additions and 7 deletions

View File

@ -395,7 +395,7 @@ Once the API documentation URLs are installed, you'll be able to include both th
/static/rest_framework/js/coreapi-0.1.1.js
/docs/schema.js
-->
{% load staticfiles %}
{% load static %}
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>

View File

@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% load rest_framework %}

View File

@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% load rest_framework %}

View File

@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>

View File

@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>

View File

@ -1,5 +1,5 @@
{% load rest_framework %}
{% load staticfiles %}
{% load static %}
<pre class="highlight javascript hide" data-language="javascript"><code>{% code html %}<!-- Load the JavaScript client library -->
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>{% endcode %}</code></pre>

View File

@ -1,5 +1,4 @@
{% extends "rest_framework/base.html" %}
{% load staticfiles %}
{% load rest_framework %}
{% block body %}