Search code examples
djangodjango-modelsdjango-users

Extending the django User


this is my first question on stackoverflow. I am a beginner programmer and kind of have issues with programming logic.

My issue is that I have a model(which happens to be a form) which collects important information from the users, I want to be able relate this model with the individual user since it has the information about them that I need.

Any form of help is appreciated...By the way am using the Django web framework.


Solution

  • If you are a new user, I suggest the following links:

    EXTENDING USER MODEL IN DJANGO

    Storing additional information about users

    Generally, you create a normal model with a foreign key to the Django User model. Then add any other fields you would want to store for a user e.g. date of birth, website, favorite color, etc.