diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-20 18:23:17 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-08-20 18:23:17 +0200 |
| commit | 1288572d9203472be8aa28e956027899fec3ed92 (patch) | |
| tree | d8338dca65ea0614aafe73a761d181754b8735e4 /docs | |
| parent | 4e82d614002f3fb46a3504b3a4fa2dcbf7f53dab (diff) | |
Made an example more readable in the URLs docs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/urls.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 819ce24b91..7297184ed3 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -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 |
