Skip to content

Commit 5acb110

Browse files
committed
Updating readme for chapter 21
1 parent c3670f9 commit 5acb110

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ $ python manage.py migrate
269269
$ python manage.py backfill_api_keys
270270
```
271271

272-
You can use your browser like so:
272+
In order to view your API key make use of the profile link in the top right. Create
273+
a new view using TemplateView and fetch the `api_key` in the `get_context_data` and
274+
pass it to the template to display.
275+
276+
Once you know your API key you can use your browser like so:
273277
http://localhost:8000/api/v1/note/?format=json&username=a&api_key=416d65381bcfb395ae7312c8028b7650b3413594
274278

275279
or the command like like so:

0 commit comments

Comments
 (0)