#9774: direct_to_template example url pattern is incorrect
---------------------------+------------------------------------------------
Reporter: agabel | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
The direct_to_template example url pattern seems incorrect. This is what
is displayed in the current documentation:
{{{
urlpatterns = patterns('django.views.generic.simple',
(r'^foo/$', 'direct_to_template', {'template':
'foo_index.html'}),
(r'^foo/(?P<id>\d+)/$', 'direct_to_template', {'template':
'foo_detail.html'}),
)
}}}
I believe direct_to_template should not be in quotes. It should look like
this:
{{{
urlpatterns = patterns('django.views.generic.simple',
(r'^foo/$', direct_to_template, {'template':
'foo_index.html'}),
(r'^foo/(?P<id>\d+)/$', direct_to_template, {'template':
'foo_detail.html'}),
)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/9774>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---