diff --git a/djangorestframework/templates/api_login.html b/djangorestframework/templates/api_login.html index 9d06e8510..750f898bb 100644 --- a/djangorestframework/templates/api_login.html +++ b/djangorestframework/templates/api_login.html @@ -1,8 +1,14 @@ - - - + {% if ADMIN_MEDIA_PREFIX %} + + + + {% else %} + + + + {% endif %} @@ -11,12 +17,12 @@
- +
{% csrf_token %} @@ -37,12 +43,12 @@ document.getElementById('id_username').focus()
- +
- + - \ No newline at end of file + diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html index 132bdb818..0532d515e 100644 --- a/djangorestframework/templates/renderer.html +++ b/djangorestframework/templates/renderer.html @@ -11,8 +11,13 @@ /* Custom styles */ .version{font-size:8px;} - - + {% if ADMIN_MEDIA_PREFIX %} + + + {% else %} + + + {% endif %} Django REST framework - {{ name }}