From 795649fcf9a9c1b2457ac58e21c8be26ec193ed2 Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Wed, 15 Mar 2017 11:41:43 -0300 Subject: [PATCH] add import get_schema_view to schema documentation --- docs/api-guide/schemas.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api-guide/schemas.md b/docs/api-guide/schemas.md index f43ff56bd..3ee7e8d50 100644 --- a/docs/api-guide/schemas.md +++ b/docs/api-guide/schemas.md @@ -107,6 +107,8 @@ add a schema to your API, depending on exactly what you need. The simplest way to include a schema in your project is to use the `get_schema_view()` function. + from rest_framework.documentation import get_schema_view + schema_view = get_schema_view(title="Server Monitoring API") urlpatterns = [