Grammar nitpick ('By default' sounds more natural than 'Per default')

pull/3745/merge
Matt Westcott 2017-03-31 19:35:35 +01:00 zatwierdzone przez Karl Hobley
rodzic 913607c939
commit b376da022f
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -9,7 +9,8 @@
The ``RoutablePageMixin`` mixin provides a convenient way for a page to respond on multiple sub-URLs with different views. For example, a blog section on a site might provide several different types of index page at URLs like ``/blog/2013/06/``, ``/blog/authors/bob/``, ``/blog/tagged/python/``, all served by the same page instance.
A ``Page`` using ``RoutablePageMixin`` exists within the page tree like any other page, but URL paths underneath it are checked against a list of patterns. If none of the patterns match, control is passed to subpages as usual (or failing that, a 404 error is thrown).
Per default a route for ``r'^$'`` exists, which serves the content exactly like a regular ``Page`` would. It can be overridden by using ``@route(r'^$')`` on any other method of the inheriting class.
By default a route for ``r'^$'`` exists, which serves the content exactly like a regular ``Page`` would. It can be overridden by using ``@route(r'^$')`` on any other method of the inheriting class.
Installation