Hi Todd.

I guess what you are looking for is:
u = User.objects.get(username='namehere')

 but you could also:

1) fire the shell (cd to your project dir) then:
   python manage.py shell
   from django.contrib.auth.models import User
   dir(User) or dir(User,objetcts.all()[0])

2) on the admin site, on the top bar there's a "Documentation" link
(mut have docutils installed ) this is very usefull for newbies, I use
it all the time. As a side bonus you get to see ForeignKey and
ManyToMany methods also.

3) checkout the source itself, since you are using this sintax you're
probably using magic-removal, then you can see the python module in :
django/contrib/auth/models.py

arthur


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to