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__.

  • Participants
  • Parent commits 2e20d0f
  • Branches soc2009/http-wsgi-improvements

Comments (0)

Files changed (4)

File 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, 

File 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

File docs/ref/settings.txt

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

File 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.