Good afternoon, I am implementing the @login_required decorator in my application (which can only be accessed if they are authenticated)
views.py
@login_required(login_url="/usuarios/login")
def index(request):
return render(request, 'index.html')
urls.py
url(r'^$', index, name='index'),
With the other views I get what I need, but with the index, a 404 error occurs.
I request your help to correct this problem