title: django drf login template
body: <p>I extend the login template of DRF</p>
  
  <pre><code>{% extends "rest_framework/login_base.html" %}
  {% block branding %}
    &lt;h3 style="margin: 0 0 20px;"&gt;My site&lt;/h3&gt;
  {% endblock %}
  </code></pre>
  
  <p>with urls.py:</p>
  
  <pre><code>urlpatterns = [
      url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      url(r'^login', login, template_name, name='login'),
      url(r'^logout', logout, template_name, name='logout'),
  ...
  </code></pre>
  
  <p>Everything works well except if the connection fails: DRF redirect to <a href="http://127.0.0.1:8000/api-auth/login/" rel="nofollow noreferrer">http://127.0.0.1:8000/api-auth/login/</a> instead of <a href="http://127.0.0.1:8000/login/" rel="nofollow noreferrer">http://127.0.0.1:8000/login/</a> and my extended template is not used. So I lose my site name for "Django REST framework" title.</p>
  
  <p>Regards</p>