urlconf

Django, name parameter in urlpatterns

Django, name parameter in urlpatterns Question: I’m following a tutorial where my urlpatterns are: urlpatterns = patterns(”, url(r’^passwords/$’, PasswordListView.as_view(), name=’passwords_api_root’), url(r’^passwords/(?P<id>[0-9]+)$’, PasswordInstanceView.as_view(), name=’passwords_api_instance’), …other urls here…, ) The PasswordListView and PasswordInstanceView are supposed to be class based views. I could not figure out the meaning of the name parameter. Is it a default parameter passed …

Total answers: 1