get email address of the user in views

561 views
Skip to first unread message

Vasu Dev Garg

unread,
Mar 22, 2016, 8:33:39 AM3/22/16
to Django users
I want to get the email address of the user which i filter in views function. How to get it?

jorr...@gmail.com

unread,
Mar 22, 2016, 11:23:09 AM3/22/16
to Django users
You should be able to use request.user.email, assuming you have the django.contrib.auth app installed and the user is logged in.
Reply all
Reply to author
Forward
0 new messages