Python example

May 25, 2014, 8:03 p.m.

from django.contrib.auth.models import User

# Print user's email address
a = User.objects.all()[0]
print a.email

Comments