Ticket #3499: docs_request_response.diff

File docs_request_response.diff, 912 bytes (added by egmanoj@…, 18 years ago)

Documentation for the suggested code change for HttpResponseRedirect and HttpResponsePermanentRedirect.

  • request_response.txt

     
    413413    Like ``HttpResponseRedirect``, but it returns a permanent redirect (HTTP
    414414    status code 301) instead of a "found" redirect (status code 302).
    415415
     416Attributes
     417----------
     418    Both ``HttpResponseRedirect`` and ``HttpResponsePermanentRedirect`` have an additional
     419    attribute indicating the target url of the redirection.
     420
     421``redirect_to``
     422    A string representing the full path to the page the request is being redirected to,
     423    not including the domain.
     424
     425    Example: ``"/artists/ellen_burstyn/doesnt_live_here_anymore/"``
     426
    416427``HttpResponseNotModified``
    417428    The constructor doesn't take any arguments. Use this to designate that a
    418429    page hasn't been modified since the user's last request.
Back to Top