hellow everone ,how do i delete my superuser? just like something cmd? or code or sql? i want get one simple method ,thank you all.
Remove the row from the auth.User table in the database. (Typically named auth_user
.)
Use any tool you want. You can use your database’s normal interfaces, use the Django shell, use the Django admin facility, use a 3rd party database tool, write a Python script to issue the sql - the mechanism doesn’t matter.
oh! thank you very much
Yes as Ken said - it’s possible to delete or rename the superuser in the Django shell, you should activate it with python manage.py shell