Ticket #12161: 12161.diff

File 12161.diff, 768 bytes (added by Tim Graham, 14 years ago)
  • docs/topics/generic-views.txt

     
    8080        ('^about/$', direct_to_template, {
    8181            'template': 'about.html'
    8282        }),
    83         **('^about/(\w+)/$', about_pages),**
     83        **('^about/(\\w+)/$', about_pages),**
    8484    )
    8585
    8686Next, we'll write the ``about_pages`` view::
     
    382382
    383383    urlpatterns = patterns('',
    384384        (r'^publishers/$', list_detail.object_list, publisher_info),
    385         **(r'^books/(\w+)/$', books_by_publisher),**
     385        **(r'^books/(\\w+)/$', books_by_publisher),**
    386386    )
    387387
    388388Next, we'll write the ``books_by_publisher`` view itself::
Back to Top