mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
457df03c99
commit
5ce16c7e27
|
@ -80,7 +80,7 @@ the URLconf to point to a view function:
|
||||||
('^about/$', direct_to_template, {
|
('^about/$', direct_to_template, {
|
||||||
'template': 'about.html'
|
'template': 'about.html'
|
||||||
}),
|
}),
|
||||||
**('^about/(\w+)/$', about_pages),**
|
**('^about/(\\w+)/$', about_pages),**
|
||||||
)
|
)
|
||||||
|
|
||||||
Next, we'll write the ``about_pages`` view::
|
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('',
|
urlpatterns = patterns('',
|
||||||
(r'^publishers/$', list_detail.object_list, publisher_info),
|
(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::
|
Next, we'll write the ``books_by_publisher`` view itself::
|
||||||
|
|
Loading…
Reference in New Issue