mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
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
|
``.html`` -- unless you want to, in which case you can do something like
|
||||||
this::
|
this::
|
||||||
|
|
||||||
(r'^polls/latest\.html$', 'polls.views.index'),
|
url(r'^polls/latest\.html$', views.index),
|
||||||
|
|
||||||
But, don't do that. It's silly.
|
But, don't do that. It's silly.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user