path('accounts/', include(django.contrib.auth)), code example Example: import login required from django.contrib.auth.decorators import login_required