diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:38:00 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:38:00 +0000 |
| commit | 5ce16c7e2791472bf3fac9ae969a85ec32045490 (patch) | |
| tree | 272e382750ceec1aea75c31b3d391ec44370992b /docs | |
| parent | 457df03c997a85da36230c96edf7283ae554879f (diff) | |
Fixed #12161 -- Added escaping of a backslash in two generic-views.txt examples. Thanks, infopams
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/generic-views.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/generic-views.txt b/docs/topics/generic-views.txt index c48c858f0b..aaaae90485 100644 --- a/docs/topics/generic-views.txt +++ b/docs/topics/generic-views.txt @@ -80,7 +80,7 @@ the URLconf to point to a view function: ('^about/$', direct_to_template, { 'template': 'about.html' }), - **('^about/(\w+)/$', about_pages),** + **('^about/(\\w+)/$', about_pages),** ) Next, we'll write the ``about_pages`` view:: @@ -382,7 +382,7 @@ of code by hand. As usual, we'll start by writing a URLconf: urlpatterns = patterns('', (r'^publishers/$', list_detail.object_list, publisher_info), - **(r'^books/(\w+)/$', books_by_publisher),** + **(r'^books/(\\w+)/$', books_by_publisher),** ) Next, we'll write the ``books_by_publisher`` view itself:: |
