aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/templates
diff options
context:
space:
mode:
authorTom Christie2012-01-28 18:53:55 +0000
committerTom Christie2012-01-28 18:54:02 +0000
commit765ec0b76ea22c857190ee6a25e9e6615e5b0c5e (patch)
treec7f4931a097a71fad8ab4773186038beff1c8f90 /djangorestframework/templates
parentf34ed6d1f3d8c1c4c5059beba944aa386e9a15ab (diff)
downloaddjango-rest-framework-765ec0b76ea22c857190ee6a25e9e6615e5b0c5e.tar.bz2
Use `staticfiles` for serving css. Fixes #116.
Diffstat (limited to 'djangorestframework/templates')
-rw-r--r--djangorestframework/templates/renderer.html29
1 files changed, 9 insertions, 20 deletions
diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html
index 5faa8b3e..e396a58f 100644
--- a/djangorestframework/templates/renderer.html
+++ b/djangorestframework/templates/renderer.html
@@ -1,25 +1,14 @@
-{% load urlize_quoted_links %}{% load add_query_param %}<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+{% load urlize_quoted_links %}
+{% load add_query_param %}
+{% load static %}
<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <style>
- /* Override some of the Django admin styling */
- #site-name a {color: #F4F379 !important;}
- .errorlist {display: inline !important}
- .errorlist li {display: inline !important; background: white !important; color: black !important; border: 0 !important;}
- /* Custom styles */
- .version{font-size:8px;}
- </style>
- {% if ADMIN_MEDIA_PREFIX %}
- <link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/base.css'/>
- <link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/forms.css'/>
- {% else %}
- <link rel="stylesheet" type="text/css" href='{{STATIC_URL}}admin/css/base.css'/>
- <link rel="stylesheet" type="text/css" href='{{STATIC_URL}}admin/css/forms.css'/>
- {% endif %}
- <title>Django REST framework - {{ name }}</title>
- </head>
+ <head>
+ <link rel="stylesheet" type="text/css" href='{% get_static_prefix %}css/djangorestframework.css'/>
+ <title>Django REST framework - {{ name }}</title>
+ </head>
<body>
<div id="container">
@@ -34,7 +23,7 @@
<div class="breadcrumbs">
{% for breadcrumb_name, breadcrumb_url in breadcrumblist %}
- <a href="{{breadcrumb_url}}">{{breadcrumb_name}}</a> {% if not forloop.last %}&rsaquo;{% endif %}
+ <a href="{{ breadcrumb_url }}">{{ breadcrumb_name }}</a> {% if not forloop.last %}&rsaquo;{% endif %}
{% endfor %}
</div>