You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extended-user.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,62 @@ class Profile(models.Model):
53
53
The model is implemented by creating a new model called `Profile` that holds a One-To-One relationship with the existing `User` Model through a `OneToOneField`. This allows extra information to be associated with a user. This can be customised to suit your project needs.
54
54
55
55
56
+
### The `ProfileForm`
57
+
The `Profile` model has it's form called `ProfileForm` that can be used to add profile details. The `ProfileForm` can be found in `apps/users/forms.py`.
- To enable the use of the form, it is sent as a context from the views, and rendered on the template. The `profile` function of `apps/users/views.py` shows how this is done.
Visit http://localhost:8000/users/profile to interact with the **Rocket Django** profile form. This can be adapted easily into any page of the route you want for your application.
108
+
109
+

110
+
111
+
56
112
## Conclusion
57
113
Easily store additional user data, implement custom authentication logic, and integrate with third-party services, all while maintaining the security and reliability of Django's built-in user model. Take control of your user management and tailor it to your specific needs with Rocket Django.
0 commit comments