Ticket #15593: reverse_doc_add_urlquote_info.patch

File reverse_doc_add_urlquote_info.patch, 1.0 KB (added by guettli, 4 years ago)
  • docs/topics/http/urls.txt

     
    787787    def myview(request):
    788788        return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
    789789
     790
     791The string returned from ``reverse()`` is already :ref:`urlquoted <uri-and-iri-handling>`. For example::
     792
     793    reverse('cities', args=u'Orléans') --> '.../Orl%C3%A9ans/'
     794
     795
    790796.. _URL pattern name: `Naming URL patterns`_
    791797
    792798The ``reverse()`` function can reverse a large variety of regular expression
  • docs/ref/unicode.txt

     
    140140possible on any input data that might be either Unicode or a bytestring, and
    141141from then on, you can treat the result as always being Unicode.
    142142
     143.. _uri-and-iri-handling:
     144
    143145URI and IRI handling
    144146~~~~~~~~~~~~~~~~~~~~
    145147
Back to Top