Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Adds editable title tag in index.html #786

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rest_framework_swagger/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<title>{{ INDEX_PAGE_TITLE_TAG }}</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link href="{% static 'rest_framework_swagger/bundles/vendors.bundle.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'rest_framework_swagger/bundles/app.bundle.css' %}" rel="stylesheet" type="text/css">
Expand Down