Hi Friend,
I added domains to the source code of EmailValidator (last line) and it the
error is still there. Do you know what I am doing wrong?
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('email', 'password')
http -f POST http://127
Hi Freind,
Plz look back the doc in Emailvalidator and decive your use case:
https://docs.djangoproject.com/en/3.0/ref/validators/#django.core.validators.EmailValidator.whitelist
On Fri, Mar 27, 2020, 18:19 Ben Magnelli wrote:
> AUTH_USER_MODEL = 'users.User
>
>
> Yep, I have that in settings
> AUTH_USER_MODEL = 'users.User
Yep, I have that in settings.py
In serializers.py if I change EmailField to CharField, it does serialize.
However, then it’s not really checking if it’s a email. And EmailField should
work.
class User(AbstractBaseUser, PermissionsMixin):
email = mo
I think django doesnt recognize your custom user model ..
Did you your app to installed app and put AUTH_USER_MODEL = 'myapp.MyUser'
in settings.py ?
On Fri, 27 Mar 2020, 3:33 am devyen, wrote:
> Hi
>
> Do know how to whitelist an email domain name? It seems odd that I would
> have to go though
Hi
Do know how to whitelist an email domain name? It seems odd that I would
have to go though an white list all of the main email domains (gmail,
protonmail, live, yahoo etc.)
Ive been unable to figure it out on my own
Thanks,
On Sat, Mar 21, 2020 at 4:45 AM Integr@te System
wrote:
> Hi Fre
Hi Freind,
Try to set whitelist for your specific domain testing or refer doc for your
case.
On Sat, Mar 21, 2020, 03:47 devyen wrote:
> Hi,
>
> I am tying to use the EmailField in my AbstractBaseUser Class see below.
> However the serializer does not recognize any emails as valid (I tested
>
6 matches
Mail list logo