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/

Share:
11,310

Related videos on Youtube

reshefm
Author by

reshefm

.net software engineer

Updated on June 04, 2022

Comments

  • reshefm
    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
    Patrick over 8 years
    This link is gone. :-(
  • Mario
    Mario about 8 years
    The target of this link can also be found elsewhere.... agiliq.com/books/djangodesignpatterns/…

Related