(self, request)
return f"{getattr(request, 'domain', '')}_{api_key}"
Returns {domain}_{api_key} for use in rate limiting api key.

        Each api key can currently be used on multiple domains, and rates
        are domain specific.
Returns {domain}_{api_key} for use in rate limiting api key.
Returns { domain } _ { api_key } for use in rate limiting api key .
def get_identifier(self, request):
        """Returns {domain}_{api_key} for use in rate limiting api key.

        Each api key can currently be used on multiple domains, and rates
        are domain specific.

        """
        username = self.extract_credentials(request)[0]
        if API_THROTTLE_WHITELIST.enabled(username):
            return username

        try:
            api_key = self.extract_credentials(request)[1]
        except ValueError:
            api_key = ''
        return f"{getattr(request, 'domain', '')}_{api_key}"
def get_identifier ( self , request ) : username = self . extract_credentials ( request ) [ 0 ] if API_THROTTLE_WHITELIST . enabled ( username ) : return username try : api_key = self . extract_credentials ( request ) [ 1 ] except ValueError : api_key = '' return f"{getattr(request, 'domain', '')}_{api_key}"