Monday, November 30, 2020

Re: Can't create custom user model

You didn't provide any information. Suggest you want to skip login as default user name. Check USERNAME_FIELD param in NewUserModel(AbstractBaseUser). Also, use class NewUserAccountManager(BaseUserManager): with createuser and createsuperuser functions.

Check this as well: https://dev.to/joshwizzy/customizing-django-authentication-using-abstractbaseuser-llg

On Tuesday, 24 November 2020 at 17:11:41 UTC+2 Derek wrote:
And this: https://stackoverflow.com/help/minimal-reproducible-example 

On Monday, 23 November 2020 at 15:59:50 UTC+2 Kasper Laudrup wrote:
On 11/23/20 9:05 AM, Charles Freeman wrote:
> Hey everyone I can't create a custom user model. Every time I try to
> create super user I end up with an error message saying username is not
> present pls help me thanks
>

https://stackoverflow.com/help/how-to-ask

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e2f1994a-efcd-463e-adb9-67473d940db9n%40googlegroups.com.

No comments:

Post a Comment