diff options
| author | Marko Tibold | 2012-01-02 14:55:19 +0100 |
|---|---|---|
| committer | Marko Tibold | 2012-01-02 14:55:19 +0100 |
| commit | 412727440beb678ba3beef78ee0b934d412afe64 (patch) | |
| tree | 466e70b3ac92d76a3567b75c26815775ebdcd53f /examples/permissionsexample/views.py | |
| parent | e419e2066fad135d161ae833b8973026f811706b (diff) | |
| download | django-rest-framework-412727440beb678ba3beef78ee0b934d412afe64.tar.bz2 | |
Add an extra explenation on how to use curl on this view.
Diffstat (limited to 'examples/permissionsexample/views.py')
| -rw-r--r-- | examples/permissionsexample/views.py | 7 |
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?' |
