From d6d22675856b609465181d5b82db253c33a9af47 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 14 Sep 2012 12:44:04 +0100 Subject: [PATCH] Flesh out Resources/Routers tutorial a little --- api-guide/throttling.html | 4 +- topics/changelog.html | 249 +++++++++++++++++++ tutorial/6-resource-orientated-projects.html | 37 ++- 3 files changed, 281 insertions(+), 9 deletions(-) create mode 100644 topics/changelog.html diff --git a/api-guide/throttling.html b/api-guide/throttling.html index 7262dff1e..71be281a6 100644 --- a/api-guide/throttling.html +++ b/api-guide/throttling.html @@ -162,7 +162,7 @@ def example_view(request, format=None):

AnonThrottle is suitable if you want to restrict the rate of requests from unknown sources.

UserRateThrottle

-

The UserThrottle will throttle users to a given rate of requests across the API. The user id is used to generate a unique key to throttle against. Unauthenticted requests will fall back to using the IP address of the incoming request is used to generate a unique key to throttle against.

+

The UserThrottle will throttle users to a given rate of requests across the API. The user id is used to generate a unique key to throttle against. Unauthenticted requests will fall back to using the IP address of the incoming request to generate a unique key to throttle against.

The allowed request rate is determined from one of the following (in order of preference).