This commit is contained in:
Ian MacLeod 2017-05-15 18:49:13 +00:00 committed by GitHub
commit 8313054a25

View File

@ -173,7 +173,7 @@ Here's our project's root `urls.py` module:
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
You can now open the API in your browser at [http://127.0.0.1:8000/](http://127.0.0.1:8000/), and view your new 'users' API. If you use the login control in the top right corner you'll also be able to add, create and delete users from the system.
If you choose to use a namespace when including your router urls you will need to do some additional work, as documented in [Using include with routers](http://www.django-rest-framework.org/api-guide/routers/#using-include-with-routers). You can now open the API in your browser at [http://127.0.0.1:8000/](http://127.0.0.1:8000/), and view your new 'users' API. If you use the login control in the top right corner you'll also be able to add, create and delete users from the system.
## Quickstart