from django.contrib.auth import get_user_model User = get_user_model() def context_processor(request): '''Append extra data to the context of the given request''' data = { "user": request.user, } return data