View Response3.json
{
"user": {
"name": "John Dough",
"age": 42,
"friends": [
{"name": "Jane Doe"},
{"name": "Bill Green"}
]
}
}
View Request3.json
{
user(id: 1) {
name
age
friends {
name
}
}
}
View Response2.json
{
"user": {
"name": "John Dough",
"age": 42,
"city": "Tokyo"
}
}
View Request2.json
{
user(id: 1) {
name
age
city
}
}
View Django_slider.html
<ul class="bxslider">
{% for medium in media %}
<div class="item {% if forloop.first %} active {% endif %}">
{% if medium.mediaType == 'video' %}
<li>
<iframe width="640" height="360" src="{{medium.mediaLink}}" frameborder="0" allowfullscreen>
</iframe>
</li>
View Django_url.html
<a href="{% url 'index' %}">This is my index page!</a>
View django_image.html
<img id="teal" src="{% static 'img/teal_circle.png' %}" alt="teal circle">
View Extend_files.html
{% extends "NAME_OF_YOUR_PROJECT/base.html" %}
{% load static %}
{% block content %}
<!--Insert all of the page specific content here-->
{% endblock %}
View Simplified_base.html
{% load staticfiles %}
<!--Load static files will bring in all the css, images, and js files-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--This is where you can input all the css files. The files are in Django format and following the path from the 'static' file -->
<link href="{% static 'bootstrap/css/bootstrap-theme.css' %}"