-
Notifications
You must be signed in to change notification settings - Fork 599
Can't override title in base template #668
Comments
This should probably be set to the same value as title in:
by default (maybe, FYI, PR is #666, nice one @awgreenblatt! |
Agreed, the title in base.html should default to whatever was set in get_swagger_view(), but to me that's a separate issue. I'm not personally sure how to get the title from the schema into the renderer context so it could be used in the template. I'd personally rather if we kept the two separate so we didn't hold up being able to override the template. Unless of course, someone else wants to provide the code to initialize the title in base.html to that set in get_swagger_view(). |
👍 - hope this gets in soon! |
A template override block on base.html would be a good start :-) |
Hi there -
I created a simple pull request to solve this. I want to override the <title> tag in base.html, but the only way currently to do so is to completely replace base.html, which is a bit overkill. I added a block around the title.
Thanks very much,
Alan
The text was updated successfully, but these errors were encountered: