rest_framework.urls

Login and logout views for the browsable API.

Add these to your root URLconf if you’re using the browsable API and your API requires authentication:

urlpatterns = [
… url(r’^auth/’, include(‘rest_framework.urls’))

]

You should make sure your authentication settings include SessionAuthentication.

Module Contents

app_name = rest_framework
urlpatterns