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
2010-07-23 23:54:48
how do you usually name your actual user in this scenario? (how do you import, use it etc)
sasker
2010-07-24 04:13:33
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
2010-07-24 04:59:07
Thanks, that is very helpful.
sasker
2010-07-25 02:06:10