django get logged in username code example
Example 1: check if the user is logged in django decorator
from django.contrib.auth.decorators import login_required
@login_required
def edit_user_profile(request):
Example 2: how to get the user argent in django
request.META['HTTP_USER_AGENT']