django create authentication code example
Example 1: django authenticate
from django.contrib.auth import authenticate
Example 2: import login required
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate
from django.contrib.auth.decorators import login_required