From 4ce6c9948f74d64b25ed2855e393448826910410 Mon Sep 17 00:00:00 2001 From: Victor Moura Date: Tue, 13 Nov 2018 12:28:25 -0200 Subject: [PATCH] Adds editable title tag in index.html --- rest_framework_swagger/settings.py | 3 ++- .../templates/rest_framework_swagger/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rest_framework_swagger/settings.py b/rest_framework_swagger/settings.py index 9404bc1d..52fd2701 100644 --- a/rest_framework_swagger/settings.py +++ b/rest_framework_swagger/settings.py @@ -26,7 +26,8 @@ ], 'VALIDATOR_URL': '', 'ACCEPT_HEADER_VERSION': None, # e.g. '1.0' - 'CUSTOM_HEADERS': {} # A dictionary of key/vals to override headers + 'CUSTOM_HEADERS': {}, # A dictionary of key/vals to override headers + 'INDEX_PAGE_TITLE_TAG': 'Swagger UI' } IMPORT_STRINGS = [] diff --git a/rest_framework_swagger/templates/rest_framework_swagger/index.html b/rest_framework_swagger/templates/rest_framework_swagger/index.html index b2de7bb4..63cd3281 100644 --- a/rest_framework_swagger/templates/rest_framework_swagger/index.html +++ b/rest_framework_swagger/templates/rest_framework_swagger/index.html @@ -4,7 +4,7 @@ - Swagger UI + {{ INDEX_PAGE_TITLE_TAG }}