1.request.META:
'HTTP_REFERER': 'http://127.0.0.1:8000/users/login/'
request.META['HTTP_HOST']
request.META['HTTP_REFERER']