Skip to content

Commit 052a20c

Browse files
jdufresneRyan P Kilby
authored andcommitted
Load 'static' instead of 'staticfiles' in templates (#5773)
1 parent 1664588 commit 052a20c

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

docs/topics/api-clients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ Once the API documentation URLs are installed, you'll be able to include both th
395395
/static/rest_framework/js/coreapi-0.1.1.js
396396
/docs/schema.js
397397
-->
398-
{% load staticfiles %}
398+
{% load static %}
399399
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
400400
<script src="{% url 'api-docs:schema-js' %}"></script>
401401

rest_framework/templates/rest_framework/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
{% load i18n %}
33
{% load rest_framework %}
44

rest_framework/templates/rest_framework/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
{% load i18n %}
33
{% load rest_framework %}
44

rest_framework/templates/rest_framework/docs/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
<!DOCTYPE html>
33
<html lang="en">
44
<head>

rest_framework/templates/rest_framework/docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
<!DOCTYPE html>
33
<html lang="en">
44
<head>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load rest_framework %}
2-
{% load staticfiles %}
2+
{% load static %}
33
<pre class="highlight javascript hide" data-language="javascript"><code>{% code html %}<!-- Load the JavaScript client library -->
44
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
55
<script src="{% url 'api-docs:schema-js' %}"></script>{% endcode %}</code></pre>

rest_framework/templates/rest_framework/login_base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% extends "rest_framework/base.html" %}
2-
{% load staticfiles %}
32
{% load rest_framework %}
43

54
{% block body %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy