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
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
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
3 matches
Mail list logo