Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces a new feature to the application, allowing users to create and manage their own profiles. The changes include the addition of a new
Profile
model, modifications to theUser
model, and updates to theviews.py
file to handle profile-related operations.Changes
Profile
Model:Profile
model is introduced to store user profile information.bio
,location
, andbirthdate
.User
model is updated to have a one-to-one relationship with theProfile
model.User
Model:User
model now includes aprofile
field, which is a foreign key to theProfile
model.views.py
:views.py
file is updated to handle profile-related operations.create_profile
function allows users to create a new profile, whileupdate_profile
enables profile updates.get_profile
function retrieves a user's profile based on their ID.