Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Viewing auth_user model in Django

How do I view the contents of the auth_user model in Django?

For example, I have created a model Class called EmailList within my app. And to view the email QuerySet I can do:

>>> from app.models import EmailList
>>> EmailList.objects.all()

How would I do this same thing with the auth_user model, so I can view the users' emails, names, etc.? Thank you.

like image 432
David542 Avatar asked Oct 27 '25 15:10

David542


1 Answers

from django.contrib.auth.models import User
User.objects.all()
like image 140
Sam Dolan Avatar answered Oct 30 '25 07:10

Sam Dolan