  # to add ADMIN_MEDIA_PREFIX to the RequestContext.  I don't like this but really really want users to not have to
  # be making settings changes in order to accomodate django-rest-framework
  @csrf_protect
  @never_cache
  def api_login(request, template_name='djangorestframework/api_login.html',
            redirect_field_name=REDIRECT_FIELD_NAME,
            authentication_form=AuthenticationForm):
      """Displays the login form and handles the login action."""
  
      redirect_to = request.REQUEST.get(redirect_field_name, '')
 
</s> remove     template = 'djangorestframework/renderer.html'
 </s> add     template = 'djangorestframework/api.html' </s> remove     template = 'djangorestframework/renderer.html'
 </s> add     template = 'djangorestframework/api.html' </s> remove def api_logout(request, next_page=None, template_name='djangorestframework/api_login.html', redirect_field_name=REDIRECT_FIELD_NAME):
 </s> add def api_logout(request, next_page=None, template_name='djangorestframework/login.html', redirect_field_name=REDIRECT_FIELD_NAME): </s> remove You may customize the templates by creating a new template called ``djangorestframework/renderer.html``
in your project, extend ``djangorestframework/base_renderer.html`` and override the
 </s> add You may customize the templates by creating a new template called ``djangorestframework/api.html``
in your project, extend ``djangorestframework/base.html`` and override the </s> remove     {% extends "djangorestframework/base_renderer.html" %}
 </s> add     {% extends "djangorestframework/base.html" %}
def api_login(request, template_name='djangorestframework/login.html',
  # to add ADMIN_MEDIA_PREFIX to the RequestContext.  I don't like this but really really want users to not have to
  # be making settings changes in order to accomodate django-rest-framework
  @csrf_protect
  @never_cache
def api_login(request, template_name='djangorestframework/login.html',
            redirect_field_name=REDIRECT_FIELD_NAME,
            authentication_form=AuthenticationForm):
      """Displays the login form and handles the login action."""
  
      redirect_to = request.REQUEST.get(redirect_field_name, '')
keep keep keep keep replace keep keep keep keep keep
 Rename templates to 'base.html', 'api.html', 'api.txt' and 'login.html' 
djangorestframework/utils/staticviews.py