@@ -115,6 +115,7 @@ The context that's available to the template:
*`name` : The name of the resource
*`post_form` : A form instance for use by the POST form (if allowed)
*`put_form` : A form instance for use by the PUT form (if allowed)
*`display_edit_forms` : A boolean indicating whether or not POST, PUT and PATCH forms will be displayed
*`request` : The request object
*`response` : The response object
*`version` : The version of Django REST Framework
...
...
@@ -122,6 +123,8 @@ The context that's available to the template:
*`FORMAT_PARAM` : The view can accept a format override
*`METHOD_PARAM` : The view can accept a method override
You can override the `BrowsableAPIRenderer.get_context()` method to customise the context that gets passed to the template.
#### Not using base.html
For more advanced customization, such as not having a Bootstrap basis or tighter integration with the rest of your site, you can simply choose not to have `api.html` extend `base.html`. Then the page content and capabilities are entirely up to you.