Commits

Anonymous committed d5e3f49

[soc2009/http-wsgi-improvements] Update versions in docs for the various new HttpResponse features, and fixed an error on the argument list for HttpResponse.__init__.

Comments (0)

Files changed (4)

docs/howto/response-sendfile.txt

 .. module:: django.http
    :synopsis: Serving of large files via handler-specific mechanisms.
 
+.. versionadded:: 1.2
+
 There are cases when you may wish to serve files in a response, but only want
 to provide access to them through your application. As discussed in :ref:`the how-to for serving static
 files <howto-static-files>`, Django is not tuned at all for this sort of serving. Thus, 

docs/ref/request-response.txt

     Otherwise, ``content_type`` is used. If neither is given, the
     ``DEFAULT_CONTENT_TYPE`` setting is used.
 
+    .. versionadded:: 1.2
+
     ``request`` is the request that triggered this response. It can be used in
     the event that a view cares about dealing with request headers, in
     particular the Accept-Charset header.
 
 .. class:: HttpResponseSendFile
 
-    .. versionadded:: 1.1
+    .. versionadded:: 1.2
 
     A special response class for efficient file serving. It informs the HTTP
     protocol handler to use platform-specific file serving mechanism (if
 
 .. class:: HttpResponseStreaming
 
-    .. versionadded:: 1.1
+    .. versionadded:: 1.2
 
     A special response class that does not consume generators before returning
     the response. To do this, it bypasses middleware that is not useful for

docs/ref/settings.txt

 SENDFILE_HEADER
 -----------------------------
 
+.. versionadded:: 1.2
+
 Default: ``None``
 
 If not ``None``, this defines the header that an :func:`~django.http.HttpResponseSendFile`

docs/topics/http/shortcuts.txt

 ``render_to_response``
 ======================
 
-.. function:: render_to_response(template[, dictionary][, context_instance][, mimetype, content_type, status])
+.. function:: render_to_response(template[, dictionary][, context_instance][, mimetype, content_type, request])
 
    Renders a given template with a given context dictionary and returns an
    :class:`~django.http.HttpResponse` object with that rendered text.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.