How to reset Django admin password

0 votes
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 remove admin status?
Aug 6, 2020 in Python by kartik
• 37,490 points
1,404 views

1 answer to this question.

0 votes

Hello @kartik,

Just try this:

python manage.py changepassword <user_name>

Hope it works!!
Thank you!!

answered Aug 6, 2020 by Niroj
• 82,580 points

Related Questions In Python

0 votes
1 answer

How do I add a link from the Django admin page of one object to the admin page of a related object?

Hello @kartik, Set show_change_link to True (False by default) in your inline ...READ MORE

answered Jun 12, 2020 in Python by Niroj
• 82,580 points
1,804 views
0 votes
1 answer

How to set other Inline title in Django Admin?

Hii @kartik, You need to set the values ...READ MORE

answered Jun 29, 2020 in Python by Niroj
• 82,580 points
452 views
0 votes
1 answer

How to update user password in Django Rest Framework?

Hello @kartik, Using a modelserializer might be an ...READ MORE

answered Jul 1, 2020 in Python by Niroj
• 82,580 points
2,937 views
0 votes
1 answer

How to show Image from Imagefield Django Admin ?

Hello @kartik, In your model class add a ...READ MORE

answered Aug 3, 2020 in Python by Niroj
• 82,580 points
2,242 views
0 votes
1 answer

How to temporarily disable a foreign key constraint in MySQL?

Hello @kartik, To turn off foreign key constraint ...READ MORE

answered Jun 23, 2020 in Python by Niroj
• 82,580 points
617 views
0 votes
1 answer

How do I use Django templates without the rest of Django?

Hello @kartik, Let's say you have this important ...READ MORE

answered Jun 23, 2020 in Python by Niroj
• 82,580 points
255 views
0 votes
1 answer

How to load a custom JS file in Django admin home?

Hello @kartik, You can override templates/admin/index.html and add the JavaScript ...READ MORE

answered May 14, 2020 in Python by Niroj
• 82,580 points
2,051 views
0 votes
1 answer

How to override the django admin translation?

Hello @kartik, Just as you can override a ...READ MORE

answered Jun 12, 2020 in Python by Niroj
• 82,580 points
532 views