How to restrict data from logged in user in Django
I want to restrict the index page for logged in user. Instead of that I want to show them another index.
I have a function based view file. People without an account can view the page or logged out but those who logged in can not view the index.