Django user registration form best practices
11,310
Solution 1
UserCreationForm
may come in handy.
Solution 2
Found the answer: http://uswaretech.com/books/djangodesignpatterns/misc.html#saving-multiple-objects-in-one-form
Solution 3
Have a look at this too: http://docs.djangoproject.com/en/dev/topics/forms/formsets/
Related videos on Youtube
Comments
-
reshefm almost 2 years
Django way of customizing the user creation is by adding UserProfile model, however when I am performing user registration, I would like the user to fill all the details, including the ones in the user profile as well.
Using forms.ModelForm seems like the easiest way, however I am dealing here with two models. What is the easiest way to accomplish that?
Thanks
-
Patrick over 8 yearsThis link is gone. :-(
-
Mario about 8 yearsThe target of this link can also be found elsewhere.... agiliq.com/books/djangodesignpatterns/…