django aithenticate login code example
Example 1: django import user
from django.contrib.auth.models import User
Example 2: import login required
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required