Closed Klurifixus closed 11 months ago
this is fixed so superuser has some limits and usersprofiles has theirs... but in profiles the users can cange picture, image, name, phonenumber and email. make password change to work would be nice. set this issue label to future feature for that.
DoesNotExist at /blog/read-later UserProfile matching query does not exist.
UserProfile Not Automatically Created: If UserProfile is a model intended to be associated with each user (like an extended user profile), it should be created whenever a new User instance is created. This can be achieved through Django signals or by overriding the save method of the User model.
Incorrect Query: The query used to retrieve the UserProfile may be incorrect, or the UserProfile for the specific user may not exist. You need to handle such cases where the profile does not exist.
To resolve this issue, you can:
Ensure UserProfile Creation on User Registration If a UserProfile should exist for every user, ensure it's created when a new user is registered. You can use Django signals for this. Here's an example: