Error in documentation
The code mentioned at http://docs.djangoproject.com/en/dev/topics/generic-views/#performing-extra-work
from mysite.books.views import author_detail
urlpatterns = patterns('',
#...
(r'^authors/(?P<author_id>d+)/$', author_detail),
)
is missing a "\" after the named group, and should be:
from mysite.books.views import author_detail
urlpatterns = patterns('',
#...
(r'^authors/(?P<author_id>\d+)/$', author_detail),
)
Change History
(6)
| Triage Stage: |
Unreviewed → Accepted
|
| Version: |
1.1 → SVN
|
| Has patch: |
set
|
| Owner: |
changed from nobody to Gabriel Hurley
|
| Status: |
new → assigned
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Looks like it's probably an escaping issue.