1👍
✅
Remove the "polls.view",
string from the patterns()
:
urlpatterns = patterns('',
# Examples:
# url(r'^admin/', include(admin.site.urls)),
url(r'^Expediteur/$', views.ExpeViewSet.as_view(), name="expediteur"),
)
To access the view at the /polls/expediteur/
address change the url to:
url(r'^polls/expediteur/$', views.ExpeViewSet.as_view(), name="expediteur"),
Or, if this urls.py
is from the polls
app:
url(r'^expediteur/$', views.ExpeViewSet.as_view(), name="expediteur"),
Source:stackexchange.com