django update_session_auth_hash code example
Example: django login required decorator
from django.contrib.auth.decorators import login_required
@login_required
def my_view(request):
...
from django.contrib.auth.decorators import login_required
@login_required
def my_view(request):
...