Here I have the following function in views.py:
views.py
@login_required(login_url=\'login\') @admin_only def admin_home_view(request): context = {}