From 3aa5dd405d7d0606a8f7b962739454f8a4404598 Mon Sep 17 00:00:00 2001 From: Johan Van de Wauw Date: Fri, 13 Apr 2018 13:39:54 +0200 Subject: [PATCH] Docs: Add necessary imports to usage example Beginners (like myself) will get errors when using the examples without specifiying these imports --- docs/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/index.md b/docs/index.md index 797914167..a33ca2b93 100644 --- a/docs/index.md +++ b/docs/index.md @@ -118,6 +118,8 @@ Add `'rest_framework'` to your `INSTALLED_APPS` setting. If you're intending to use the browsable API you'll probably also want to add REST framework's login and logout views. Add the following to your root `urls.py` file. + from django.conf.urls import url, include + ... urlpatterns = [ ... url(r'^api-auth/', include('rest_framework.urls'))