If you are going to use the auth module that Django provides, you will most likely want to let your users add additional information about them. In Django you do this by extending the Profile model and activating it in the settings file.
Extend the Profile model: models.py
from django.contrib.auth.models import User class Profile(models.Model): user = models.ForeignKey(User, unique=True) address = models.CharField(max_length=150) city = models.ForeignKey(Cities) telephone = models.CharField(max_length=100) birthday = models.DateField() ...
Edit the Settings file: settings.py
AUTH_PROFILE_MODULE = "ApplicationName.Profile"
Add your new Views: views.py
user_profile = request.user.get_profile() address = user_profile.address
Create a Template: profile.html
{{ user.get_profile.address }} # if this doesn't work try # user.get_profile().address or # request.user.get_profile.address or # request.user.get_profile().address
References:
http://www.turnkeylinux.org/blog/django-profile
http://www.turnkeylinux.org/blog/django-signals