Made an example more readable in the URLs docs.

This commit is contained in:
Aymeric Augustin 2012-08-20 18:23:17 +02:00
parent 4e82d61400
commit 1288572d92
1 changed files with 2 additions and 4 deletions

View File

@ -574,10 +574,8 @@ For example::
(r'^blog/(?P<year>\d{4})/$', 'year_archive', {'foo': 'bar'}),
)
In this example, for a request to ``/blog/2005/``, Django will call the
``blog.views.year_archive()`` view, passing it these keyword arguments::
year='2005', foo='bar'
In this example, for a request to ``/blog/2005/``, Django will call
``blog.views.year_archive(year='2005', foo='bar')``.
This technique is used in the
:doc:`syndication framework </ref/contrib/syndication>` to pass metadata and