mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
Merge pull request #1444 from DanSears/master
clarified which urls.py to edit
This commit is contained in:
commit
62786a7ad6
|
@ -129,7 +129,7 @@ Then, add the following property to **both** the `SnippetList` and `SnippetDetai
|
||||||
|
|
||||||
If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so we'd need to be able to login as a user.
|
If you open a browser and navigate to the browsable API at the moment, you'll find that you're no longer able to create new code snippets. In order to do so we'd need to be able to login as a user.
|
||||||
|
|
||||||
We can add a login view for use with the browsable API, by editing our URLconf once more.
|
We can add a login view for use with the browsable API, by editing the URLconf in our project-level urls.py file.
|
||||||
|
|
||||||
Add the following import at the top of the file:
|
Add the following import at the top of the file:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user