From 07e6b691017b4afe3a8ab27d502d2ccea56e0455 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 5 Oct 2012 14:00:31 +0100 Subject: [PATCH] Docs style tweaks --- api-guide/responses.html | 10 ++++++---- css/default.css | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api-guide/responses.html b/api-guide/responses.html index 18649c0af..d16b7270f 100644 --- a/api-guide/responses.html +++ b/api-guide/responses.html @@ -97,9 +97,9 @@

.render()

+

Signature: .render()

This methd is called to render the serialized data of the response into the final response content. When .render() is called, the response content will be set to the result of calling the .render(data, accepted_media_type) method on the accepted renderer instance.

You won't typically need to call .render() yourself, as it's handled by Django's standard response cycle.

-

Standard HTTPResponse methods

+

Standard response methods

The Response class extends SimpleTemplateResponse, and all the usual methods are also available on the response. For example you can set headers on the response in the standard way:

response = Response()
 response['Cache-Control'] = 'no-cache'
diff --git a/css/default.css b/css/default.css
index 28cd9a195..5a73fb99d 100644
--- a/css/default.css
+++ b/css/default.css
@@ -154,6 +154,7 @@ body, .navbar .navbar-inner .container-fluid{
 
 body{
   background: url("../img/grid.png") repeat-x;
+  background-attachment: fixed;
 }
 
 /* custom navigation styles */