how to set django to require login on every function by default 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