Skip to content

Commit 66dcfb9

Browse files
authored
Update README.md
When we add later the urls in templates we use the url name and that makes a noreversematch error because it´s not defined in urls.py. Thxs!
1 parent 0ce0a35 commit 66dcfb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

es/extend_your_application/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ from . import views
5454

5555
urlpatterns = [
5656
url(r'^$', views.post_list),
57-
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail),
57+
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
5858
]
5959
```
6060

0 commit comments

Comments
 (0)