|
@@ -40,13 +40,13 @@ All attributes except ``session`` should be considered read-only.
|
|
|
Under some web server configurations, the portion of the URL after the host
|
|
|
name is split up into a script prefix portion and a path info portion
|
|
|
(this happens, for example, when using the ``django.root`` option
|
|
|
- with the :ref:`modpython handler from Apache <howto-deployment-modpython>`).
|
|
|
+ with the :doc:`modpython handler from Apache </howto/deployment/modpython>`).
|
|
|
The ``path_info`` attribute always contains the path info portion of the
|
|
|
path, no matter what web server is being used. Using this instead of
|
|
|
attr:`~HttpRequest.path` can make your code much easier to move between test
|
|
|
and deployment servers.
|
|
|
|
|
|
- For example, if the ``django.root`` for your application is set to
|
|
|
+ For example, if the ``django.root`` for your application is set to
|
|
|
``"/minfo"``, then ``path`` might be ``"/minfo/music/bands/the_beatles/"``
|
|
|
and ``path_info`` would be ``"/music/bands/the_beatles/"``.
|
|
|
|
|
@@ -542,6 +542,12 @@ Methods
|
|
|
|
|
|
.. _`cookie Morsel`: http://docs.python.org/library/cookie.html#Cookie.Morsel
|
|
|
|
|
|
+ .. versionchanged:: 1.3
|
|
|
+
|
|
|
+ Both the possibility of specifying a ``datetime.datetime`` object in
|
|
|
+ ``expires`` and the auto-calculation of ``max_age`` in such case were added
|
|
|
+ in Django 1.3.
|
|
|
+
|
|
|
.. method:: HttpResponse.delete_cookie(key, path='/', domain=None)
|
|
|
|
|
|
Deletes the cookie with the given key. Fails silently if the key doesn't
|