add context to django userview code example
Example 1: import login required
from django.contrib.auth.decorators import login_required
Example 2: login system in django
LOGOUT_REDIRECT_URL = 'your_url'
from django.contrib.auth.decorators import login_required
LOGOUT_REDIRECT_URL = 'your_url'