Re: Can't login with Username

2022-06-16 Thread Ryan Nowakowski
You could use manage.py shell to set the email address of your super user.

On June 13, 2022 12:22:30 AM CDT, Sudip Khokhar 
 wrote:
>Hi All,
>
>I am practicing Django since 3 months and recently I encountered an issue 
>with my practice project as I made a super user and didn't added email to 
>it.
>Then after I set email as the USERNAME_FIELD = 'email' in my django model 
>to access the database. But not I don't know how to add email after making 
>migrations to it.
>I had also tried by commenting *USERNAME_FIELD = 'email'* and *REQUIRED_FIELDS 
>= [], *but didn't worked well and I'm unable to login to my django admin 
>database.
>
>-- 
>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+unsubscr...@googlegroups.com.
>To view this discussion on the web visit 
>https://groups.google.com/d/msgid/django-users/3426cc22-422d-4d2c-b845-bc90243b2e9dn%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4A42925B-A189-46B6-B385-AC2814448F47%40fattuba.com.


Re: Can't login with Username

2022-06-13 Thread Abdul Qoyyuum
Create another superuser with 

python manage.py createsuperuser --username=joe --email=j...@example.com

And then, login with joe and your new password.

On Monday, June 13, 2022 at 9:39:04 PM UTC+8 sudip.flyon...@gmail.com wrote:

> Hi All,
>
> I am practicing Django since 3 months and recently I encountered an issue 
> with my practice project as I made a super user and didn't added email to 
> it.
> Then after I set email as the USERNAME_FIELD = 'email' in my django model 
> to access the database. But not I don't know how to add email after making 
> migrations to it.
> I had also tried by commenting *USERNAME_FIELD = 'email'* and 
> *REQUIRED_FIELDS 
> = [], *but didn't worked well and I'm unable to login to my django admin 
> database.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b8fd6ea3-9dba-4e53-8f1a-08d6ef9c5a9en%40googlegroups.com.


Can't login with Username

2022-06-13 Thread Sudip Khokhar
Hi All,

I am practicing Django since 3 months and recently I encountered an issue 
with my practice project as I made a super user and didn't added email to 
it.
Then after I set email as the USERNAME_FIELD = 'email' in my django model 
to access the database. But not I don't know how to add email after making 
migrations to it.
I had also tried by commenting *USERNAME_FIELD = 'email'* and *REQUIRED_FIELDS 
= [], *but didn't worked well and I'm unable to login to my django admin 
database.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3426cc22-422d-4d2c-b845-bc90243b2e9dn%40googlegroups.com.