You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find an explanation of why "patterns" is included in rango/urls.py. Previous and later examples of this file do not include "patterns".
The text in question is copied below.
Parameterised URL Mapping
Now let’s have a look at how we actually pass the value of the category_name_url parameter to the category() function. To do so, we need to modify Rango’s urls.py file and update the urlpatterns tuple as follows.
I could not find an explanation of why "patterns" is included in
rango/urls.py. Previous and later examples of this file do not include
"patterns".
The text in question is copied below.
Parameterised URL Mapping
Now let’s have a look at how we actually pass the value of the
category_name_url parameter to the category() function. To do so, we need
to modify Rango’s urls.py file and update the urlpatterns tuple as follows.
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^about/$', views.about, name='about'),
url(r'^category/(?P[\w-]+)/$',
views.show_category, name='show_category'),)
I could not find an explanation of why "patterns" is included in rango/urls.py. Previous and later examples of this file do not include "patterns".
The text in question is copied below.
Parameterised URL Mapping
Now let’s have a look at how we actually pass the value of the category_name_url parameter to the category() function. To do so, we need to modify Rango’s urls.py file and update the urlpatterns tuple as follows.
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^about/$', views.about, name='about'),
url(r'^category/(?P<category_name_slug>[\w-]+)/$',
views.show_category, name='show_category'),)
The text was updated successfully, but these errors were encountered: