mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-20 13:30:59 +03:00
Adjusted login template override example (#6265)
This commit is contained in:
parent
1348bdc48a
commit
7ad5bdb669
|
@ -94,6 +94,8 @@ To add branding and customize the look-and-feel of the login template, create a
|
||||||
|
|
||||||
You can add your site name or branding by including the branding block:
|
You can add your site name or branding by including the branding block:
|
||||||
|
|
||||||
|
{% extends "rest_framework/login_base.html" %}
|
||||||
|
|
||||||
{% block branding %}
|
{% block branding %}
|
||||||
<h3 style="margin: 0 0 20px;">My Site Name</h3>
|
<h3 style="margin: 0 0 20px;">My Site Name</h3>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user