Ticket #12161: 12161.diff
File 12161.diff, 768 bytes (added by , 15 years ago) |
---|
-
docs/topics/generic-views.txt
80 80 ('^about/$', direct_to_template, { 81 81 'template': 'about.html' 82 82 }), 83 **('^about/(\ w+)/$', about_pages),**83 **('^about/(\\w+)/$', about_pages),** 84 84 ) 85 85 86 86 Next, we'll write the ``about_pages`` view:: … … 382 382 383 383 urlpatterns = patterns('', 384 384 (r'^publishers/$', list_detail.object_list, publisher_info), 385 **(r'^books/(\ w+)/$', books_by_publisher),**385 **(r'^books/(\\w+)/$', books_by_publisher),** 386 386 ) 387 387 388 388 Next, we'll write the ``books_by_publisher`` view itself::