Hello everyone.
I have a simple Django 5.0 project with three apps.
I use Django’s default authentication system.
I have a small problem that unfortunately I haven’t been able to solve myself yet.
I can’t make it so that if the user is already logged in, if the user returns to the login link, the user is automatically redirected to the home page.
I’ve tried searching the internet and documentation for Django 5.0, but I can’t figure out how to use it
“redirect_authenticated_user”.
And I’m not sure it’s the best system to adopt.
I’ve tried a thousand ways, but it doesn’t work.
How do I use “redirect_authenticated_user” correctly?
In which urls.py file (since I have more than two django apps)?
Is this the right thing to do even if I have class-based views that require certain permissions and there may be social media fingerprinting issues?
Thanks a lot to everyone.
I know these are trivial questions, but I’m truly a beginner.
I’m sorry I couldn’t do it on my own and I welcome any little advice I can get.
Thanks again to everyone.