Tuesday, March 22, 2016

Re: get email address of the user in views

You should be able to use request.user.email, assuming you have the django.contrib.auth app installed and the user is logged in.


On Tuesday, March 22, 2016 at 1:33:39 PM UTC+1, Vasu Dev Garg wrote:
I want to get the email address of the user which i filter in views function. How to get it?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1cc4972f-f1f3-4bb0-9181-187f382ab1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment