views:

34

answers:

1

I am new to using Frameworks for web development and I have noticed that frameworks like django, turbogears etc come with auth packages which contains user models. Am I supposed to directly modify these and use them as my User models or am I supposed to associate my own user models to these and use them just for authentication?

+1  A: 

The latter: build a model with a one to one relationship to the User. Don't modify the django one directly or you'll likely run into trouble sooner or later. The django team won't be taking your changes into account after all and you could be adversely impacted if any internal changes are made. (Though you needn't worry about compatibility with the external interface to your own application.)

ars
how do you usually name your actual user in this scenario? (how do you import, use it etc)
sasker
I usually use the django auth.user for most needs, but I have a UserProfile model associated with each user. For most purposes, the profile is enough for me to store my application specific attributes.
ars
Thanks, that is very helpful.
sasker