I want to extract a list of active users email addresses from Django's Home › Authentication and Authorization › Users page and put it into a template. Can someone help me achieve this?
So far I'm trying to do something like this:
from django.contrib.auth.models import User
if User.is_active:
emails = User.objects.get(email=request.user.email)