Xenon Xenon - 7 months ago 14
Python Question

TastyPie throttling - by user or by IP?

I can't seem to find any information on what TastyPie throttles based on. Is it by the IP of the request, or by the actual Django user object?

Answer

Throttle key is based on authentication.get_identifier function.

Default implementation of this function returns a combination of IP address and hostname.