{% load url from future %} {% load rest_framework %} {% load static %} {% block head %} {% block meta %} {% endblock %} {% block title %}Django REST framework{% endblock %} {% block style %} {% endblock %} {% endblock %}
{% block navbar %} {% endblock %} {% block breadcrumbs %} {% endblock %}
{% if 'GET' in allowed_methods %}
GET
{% endif %} {% if options_form %}
{% csrf_token %}
{% endif %} {% if delete_form %}
{% csrf_token %}
{% endif %}
{{ description }}
{{ request.method }} {{ request.get_full_path }}
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %} {% for key, val in response.items %}{{ key }}: {{ val|urlize_quoted_links }} {% endfor %}
{{ content|urlize_quoted_links }}
{% endautoescape %}
{% if response.status_code != 403 %} {% if post_form %}
{% csrf_token %} {{ post_form.non_field_errors }} {% for field in post_form %}
{{ field.label_tag|add_class:"control-label" }}
{{ field }} {{ field.help_text }}
{% endfor %}
{% endif %} {% if put_form %}
{% csrf_token %} {{ put_form.non_field_errors }} {% for field in put_form %}
{{ field.label_tag|add_class:"control-label" }}
{{ field }} {{ field.help_text }}
{% endfor %}
{% endif %} {% endif %}
{% block footer %} {% endblock %} {% block script %} {% endblock %}