mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Update 3.6-announcement.md
fixed space and added loading staticfiles
This commit is contained in:
parent
e241e9fb25
commit
afcf0e01ba
|
@ -101,11 +101,11 @@ Here's a brief example that demonstrates:
|
||||||
* Making an API request using the client.
|
* Making an API request using the client.
|
||||||
|
|
||||||
**index.html**
|
**index.html**
|
||||||
|
{% load staticfiles %}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="{% static 'js/coreapi-0.1.0.js' %}"></script>
|
<script src="{% static 'js/coreapi-0.1.0.js' %}"></script>
|
||||||
<script src="{% static 'docs/js/schema.js'%}"></script>
|
<script src="{% static 'docs/js/schema.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
const coreapi = window.coreapi
|
const coreapi = window.coreapi
|
||||||
const schema = window.schema
|
const schema = window.schema
|
||||||
|
|
Loading…
Reference in New Issue
Block a user