From 21b1c618bf0071657036b989a9654a74f693f6ad Mon Sep 17 00:00:00 2001 From: Roman Vasilyev Date: Wed, 4 Jan 2017 09:07:33 -0800 Subject: [PATCH] documentation update --- docs/api-guide/schemas.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api-guide/schemas.md b/docs/api-guide/schemas.md index 95eb05a40..7a1d047b1 100644 --- a/docs/api-guide/schemas.md +++ b/docs/api-guide/schemas.md @@ -145,6 +145,18 @@ May be used to pass a canonical URL for the schema. url='https://www.example.org/api/' ) +#### `urlconf` + +May be used to pass a nondefault url configuration +useful for `Django multihost snippet` +https://code.djangoproject.com/wiki/MultiHostMiddleware + + schema_view = get_schema_view( + title='Server Monitoring API', + url='https://www.example.org/api/', + urlconf='myproject.urls' + ) + #### `renderer_classes` May be used to pass the set of renderer classes that can be used to render the API root endpoint.