Add logging 2

This commit is contained in:
jar3b 2018-07-06 19:53:05 +03:00
parent 22428a6fa9
commit ef0855fad3

View File

@ -9,6 +9,7 @@ from drf_uuid_auth.settings import api_settings
class UuidAuthentication(BaseAuthentication): class UuidAuthentication(BaseAuthentication):
def authenticate(self, request): def authenticate(self, request):
print(api_settings.AUTH_HEADER) print(api_settings.AUTH_HEADER)
print(request.get_full_path(), request.META.get('REMOTE_ADDR', None))
header = request.META.get(api_settings.AUTH_HEADER.upper(), None) header = request.META.get(api_settings.AUTH_HEADER.upper(), None)
print(header) print(header)
if header is None or header == "" or header == "-": if header is None or header == "" or header == "-":