mirror of https://github.com/django/django.git
Tutorial: Consistent url syntax
This commit is contained in:
parent
95cc0e15b4
commit
a8fa96796f
|
@ -267,7 +267,7 @@ what you can do with them. And there's no need to add URL cruft such as
|
|||
``.html`` -- unless you want to, in which case you can do something like
|
||||
this::
|
||||
|
||||
(r'^polls/latest\.html$', 'polls.views.index'),
|
||||
url(r'^polls/latest\.html$', views.index),
|
||||
|
||||
But, don't do that. It's silly.
|
||||
|
||||
|
|
Loading…
Reference in New Issue