rest_example/rest_example/urls.py/
Line number: 14
url(r'^users/', views.UserList.as_view())
For the above line, you need to add '$' at the end of regular expression
url(r'^users/$', views.UserList.as_view())
The issue without '$' sign is that it always calls views.UserList.as_view().
If you add a '$' sign, it will call views.UserDetail.as_view().
rest_example/rest_example/urls.py/
Line number: 14
url(r'^users/', views.UserList.as_view())
For the above line, you need to add '$' at the end of regular expression
url(r'^users/$', views.UserList.as_view())
The issue without '$' sign is that it always calls views.UserList.as_view().
If you add a '$' sign, it will call views.UserDetail.as_view().