We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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().
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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().
The text was updated successfully, but these errors were encountered: