Not able to create super user with Django manage.py

前端 未结 6 1867
感情败类
感情败类 2021-01-30 02:19

Trying to create a super user for my database:

manage.py createsuperuser

Getting a sad recursive message:

Superuser creation skippe

6条回答
  •  故里飘歌
    2021-01-30 02:47

    To create an admin username and password, you must first use the command:

    python manage.py migrate

    Then after use the command:

    python manage.py createsuperuser

    Once these steps are complete, the program will ask you to enter:

    • username
    • email
    • password

    With the password, it will not show as you are typing so it will appear as though you are not typing, but ignore it as it will ask you to renter the password. When you complete these steps, use the command:

    python manage.py runserver

    In the browser add "/admin", which will take you to the admin site, and then type in your new username and password.

提交回复
热议问题