diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-09 15:31:03 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-09 15:31:03 +0000 |
| commit | 6341b43dfb6f1f22b2f321a6bf1b7f7b43ed945b (patch) | |
| tree | 2a6612aa643ea28dcceff9578b676d3873c3ae67 | |
| parent | ad181e21c28b4af836ed5ac3267094e527504cdd (diff) | |
Fixed #1811 -- Fixed inconsistencies in docs/overview.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | docs/overview.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/overview.txt b/docs/overview.txt index 75e324aa57..5a399582e8 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -183,7 +183,7 @@ is a simple Python function. Each view gets passed a request object -- which contains request metadata -- and the values captured in the regex. For example, if a user requested the URL "/articles/2005/05/39323/", Django -would call the function ``mysite.news.views.article_detail(request, +would call the function ``mysite.views.article_detail(request, '2005', '05', '39323')``. Write your views @@ -234,7 +234,7 @@ might look like:: Variables are surrounded by double-curly braces. ``{{ article.headline }}`` means "Output the value of the article's headline attribute." But dots aren't used only for attribute lookup: They also can do dictionary-key lookup, index -lookup and function calls (as is the case with ``article.get_reporter``). +lookup and function calls. Note ``{{ article.pub_date|date:"F j, Y" }}`` uses a Unix-style "pipe" (the "|" character). This is called a template filter, and it's a way to filter the value |
