Keoh User Profile is a very simple app to use extended version of Django User model.
- Add
"user_profile"
to yourINSTALLED_APPS
setting like this:
INSTALLED_APPS = (
...
'user_profile',
)
- Run migrate:
python manage.py migrate
This application creates a user_profile table in your database, this model is linked to django user model, you can access to avatar image through the userprofile object in the user instance object:
user.userprofile.get_avatar()
It returns the complete url to the avatar file, or if it does not exist, it returns a default image.
Documentation in progress.. :(