I have some issue.
I import django User model, create new user then trying to get it profile, all what I have is “Profile matching query does not exist”. Why? I just create the user.
Here is my code:
from django.contrib.auth.models import User
user = User.objects.create(username="stackoverflow", password="tester1234")
user.get_profile()
The online documentation suggests that get_profile()…
Are you sure you’ve enabled profiles?
From your code snippet it looks like you’ve perhaps not created a profile which is a separate class (see here.