Thanks for the feedback. I'm not quite sure what you mean, Django User Profiles are a simple way to associate additional information to your user accounts. If you need to associate other models to a user account, then you should use a foreign key.
foo/models.py
from django.db import models
from django.contrib.auth.models import User
class Foo(models.Model):
user = models.ForeignKey(User)
stuff = models.CharField(max_length=50)
...
You could then refer to the associated user foo's with something like this:
foo/views.py
from django.contrib.auth.decorators import login_required
@login_required
def bar(request):
foos = request.user.foo_set.all() # or any of the other useful methods
...
I hope the above helps, if not, the more info you can provide, the easier it will be to help.
ForeignKey ?
Thanks for the feedback. I'm not quite sure what you mean, Django User Profiles are a simple way to associate additional information to your user accounts. If you need to associate other models to a user account, then you should use a foreign key.
You could then refer to the associated user foo's with something like this:
I hope the above helps, if not, the more info you can provide, the easier it will be to help.