django get current user in view code example
Example 1: get current site django
from django.contrib.sites.shortcuts import get_current_site
domain = get_current_site(request).domain
Example 2: how to get the user argent in django
request.META['HTTP_USER_AGENT']