aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMarko Tibold2012-01-02 14:55:19 +0100
committerMarko Tibold2012-01-02 14:55:19 +0100
commit412727440beb678ba3beef78ee0b934d412afe64 (patch)
tree466e70b3ac92d76a3567b75c26815775ebdcd53f /examples
parente419e2066fad135d161ae833b8973026f811706b (diff)
downloaddjango-rest-framework-412727440beb678ba3beef78ee0b934d412afe64.tar.bz2
Add an extra explenation on how to use curl on this view.
Diffstat (limited to 'examples')
-rw-r--r--examples/permissionsexample/views.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/permissionsexample/views.py b/examples/permissionsexample/views.py
index 54a1fdd5..3f71e67b 100644
--- a/examples/permissionsexample/views.py
+++ b/examples/permissionsexample/views.py
@@ -31,8 +31,11 @@ class ThrottlingExampleView(View):
class LoggedInExampleView(View):
"""
- You can login with **'test', 'test'.**
- """
+ You can login with **'test', 'test'.** or use curl:
+
+ `curl -X GET -H 'Accept: application/json' -u test:test http://localhost:8000/permissions-example`
+ """
+
permissions = (IsAuthenticated, )
def get(self, request):
return 'Logged in or not?'