I am making a website through Django and I want to create a similar model for the Users model (default user model came with Django) I have tried everything I have found from google django docs and I couldn't.
Can anyone help? Or help me to make a login system for my normal model
For an instance,
I have created a normal model called accounts and there is a field in it called loggedin.
Whenever I try to login system set it to True means logged in. And if i logged out by the logout button i set it to false now lets take in consideration if i have closed the web browser Immediately i want to set it to False
Any help?