Skip to content

Commit b4d1069

Browse files
committed
Add tip about default value
1 parent a4619de commit b4d1069

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ other configuration formats they are defined with the ``defaults`` option:
936936
Now, when the user visits ``/blog``, the ``blog_list`` route will match and
937937
``$page`` will default to a value of ``1``.
938938

939+
.. tip::
940+
941+
The default is allowed to not match the requirement.
942+
939943
.. warning::
940944

941945
You can have more than one optional parameter (e.g. ``/blog/{slug}/{page}``),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy