Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Reset The Admin Password in Django [duplicate]

Possible Duplicate:
how to reset django admin password?

I have worked for Django project in local server. The current updates need to fix on web server . But couldnt match the admin credentials . So how can reset the admin password...

like image 574
Abin Abraham Avatar asked Oct 09 '12 08:10

Abin Abraham


People also ask

How do I change my Django admin password?

manage.py changepassword *username* offers a method of changing a user's password from the command line. It prompts you to change the password of a given user which you must enter twice. If they both match, the new password will be changed immediately.

What is the password for Django admin?

By default you have to use admin and the password is 123123.


2 Answers

Assuming you know the name of a superuser: django-admin.py changepassword

like image 58
arie Avatar answered Sep 27 '22 18:09

arie


Run this in the project on the server to create a new super user

python manage.py createsuperuser
like image 41
Johanna Larsson Avatar answered Sep 27 '22 19:09

Johanna Larsson