How to reset Django admin password?

前端 未结 21 1802
遥遥无期
遥遥无期 2020-12-12 08:39

I am using Django (version 1.3) and have forgotten both admin username and password. How to reset both?

And is it possible to make a normal user into admin, and then

21条回答
  •  無奈伤痛
    2020-12-12 09:30

    Create a new superuser with the command "python manage.py createsuperuser". Login as the new super user. Click on the 'users' link. Then click on the user you want to delete. click on delete user at the end of the form page.

    Note - The above process will make changes to the activity logs done by that particular user.

提交回复
热议问题