SOLVED:'AnonymousUser' object has no attribute 'profile'

Vicente G. Reyes - Sep 2 '19 - - Dev Community

Can someone help me? I've been going around and around with questions here on SO but can't get the answer.

I'm getting 'User' object has no attribute 'profile'

Here's my user model

class Profile(models.Model):

    NARRATESTATUS = (
        ('PAS', 'Passed'),
        ('REV', 'For_Review'),
        ('ACC', 'Narration_Accepted'),
    )

    TRANSLATESTATUS = (
        ('PSD', 'Passed'),
        ('RVW',
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player