Hy guys, I have a custom User model in Django 2.0 containing various user data.
class User(models.Model):
username = = models.CharField(max_length=30)
_isLogged = False
# ... other custom data
Once the user is logged (_isLogged = True
)~ in the login page, how can I save this object so I can verify in another page, say home, that the same user has already logged in?
N.B. I tried to store all the object in a session variable but it is not serializable.
Many thanks.