Bishnu Sharma

1

votes
0

answer
401

views

Unable to send Activation Email with Djoser in Django Rest Framework

am trying to send activation email when a user get registered . when post request is called the content of email is shown in console but it is not send to user email. Django setting : EMAIL_USE_TLS=True EMAIL_HOST='smtp.gmail.com' EMAIL_HOST_USER= EMAIL_HOST_PASSWORD= EMAIL_PORT=587 EMAIL_BACKEND =...
Bishnu Sharma
1

votes
1

answer
57

views

Writable nested Django Serializer error

I have this issue: class UserProfiles(models.Model): user = models.OneToOneField(User) role_alt = models.CharField(max_length=256, null=False) class ProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfiles fields = ('role_alt', ) class UserSerializer(serializers.ModelSerializ...
Bishnu Sharma