mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 10:34:03 +03:00
Load 'static' instead of 'staticfiles' in templates (#5773)
This commit is contained in:
parent
1664588500
commit
052a20cd7b
|
@ -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>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
{% load rest_framework %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
{% load rest_framework %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "rest_framework/base.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rest_framework %}
|
||||
|
||||
{% block body %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user