[Answered ]-Django: Within built-in view, how to redirect to / if user already authenticated?

2👍

This solution in my edit works after all.

I had imported the wrong namespace, instead of

from django.contrib.auth.views import login

I had imported:

from django.contrib.auth import login

I hope this helps someone else.

👤Houman

Leave a comment