Add an extra explenation on how to use curl on this view.

This commit is contained in:
Marko Tibold 2012-01-02 14:55:19 +01:00
parent e419e2066f
commit 412727440b

View File

@ -31,8 +31,11 @@ class ThrottlingExampleView(View):
class LoggedInExampleView(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, ) permissions = (IsAuthenticated, )
def get(self, request): def get(self, request):
return 'Logged in or not?' return 'Logged in or not?'