adding django login required decorator 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):
...