From 0cfe06f5f97d57a31662760f275b984792405d6c Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 8 Dec 2014 16:38:49 +0000 Subject: Update documentation --- tutorial/quickstart/index.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tutorial/quickstart') diff --git a/tutorial/quickstart/index.html b/tutorial/quickstart/index.html index f291901c..204942b0 100644 --- a/tutorial/quickstart/index.html +++ b/tutorial/quickstart/index.html @@ -406,6 +406,7 @@ pip install djangorestframework django-admin.py startproject tutorial . cd tutorial django-admin.py startapp quickstart +cd ..

Now sync your database for the first time:

python manage.py migrate
@@ -518,6 +519,31 @@ REST_FRAMEWORK = {
     ]
 }
 
+

Or using the httpie, command line tool...

+
bash: http -a username:password http://127.0.0.1:8000/users/
+
+HTTP/1.1 200 OK
+...
+{
+    "count": 2,
+    "next": null,
+    "previous": null,
+    "results": [
+        {
+            "email": "admin@example.com",
+            "groups": [],
+            "url": "http://localhost:8000/users/1/",
+            "username": "paul"
+        },
+        {
+            "email": "tom@example.com",
+            "groups": [                ],
+            "url": "http://127.0.0.1:8000/users/2/",
+            "username": "tom"
+        }
+    ]
+}
+

Or directly through the browser...

Quick start image

If you're working through the browser, make sure to login using the control in the top right corner.

-- cgit v1.2.3