Fixed #25996 -- Revised performance section in URLs topic docs.

This commit is contained in:
Ralph Reid 2016-07-03 20:47:51 +02:00 committed by Mariusz Felisiak
parent f0c06f8ab7
commit d3579ca112
1 changed files with 3 additions and 2 deletions

View File

@ -317,8 +317,9 @@ default argument for ``num``, ``1``. If the second pattern matches,
Performance
===========
Each regular expression in a ``urlpatterns`` is compiled the first time it's
accessed. This makes the system blazingly fast.
Django processes regular expressions in the ``urlpatterns`` list which is
compiled the first time it's accessed. Subsequent requests use the cached
configuration via the URL resolver.
Syntax of the ``urlpatterns`` variable
======================================